Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.

Merge Release 5.7.1 #1

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
633f052
#295 Add virtual populate options
hasezoey Jun 6, 2019
6a52a02
#276 Add a note to InstanceType
hasezoey Jun 6, 2019
795b4ab
#270 Docs: adding @prop options _id
hasezoey Jun 6, 2019
bb54015
Release 5.7.0
Ben305 Jun 6, 2019
264f263
Release 5.7.1
Ben305 Jun 6, 2019
d2c00c4
Add type property to array schema to fix array defaults (#302)
Jun 13, 2019
8a2161e
Remove mongoose promise override to allow for use of other promise li…
Jun 13, 2019
4fc64e5
Release 5.7.2 (#304)
Ben305 Jun 13, 2019
6d5af8f
Support for mongoose refPath, see #310 (#311)
mschnee Jun 27, 2019
dfa47eb
Fixed #311, more consistent Coding-Style (#312)
hasezoey Jun 29, 2019
73583bc
Modify the tests (#318)
hasezoey Jul 11, 2019
5769912
remove unused type in hooks (#317)
hasezoey Jul 11, 2019
664b3e0
Fix typo: "net" -> "next" (#316)
hasezoey Jul 11, 2019
61c5948
adding the select property (#324)
hasezoey Jul 12, 2019
7418c34
add missing string validation options with tests (#293)
hasezoey Jul 12, 2019
e4019c2
Added templates (#323)
hasezoey Jul 12, 2019
2f5d013
fix: properly set Decimal128, ObjectID types to field (#322)
nodkz Jul 12, 2019
943c589
Release 5.8.0
Ben305 Jul 12, 2019
740f17c
- hotfix for "@prop({select})" (#327)
hasezoey Jul 16, 2019
f597d66
Release 5.8.1
Ben305 Jul 16, 2019
042414b
- Re-Work of the config with In-Memory (#328)
hasezoey Jul 16, 2019
a6581a4
Include more in a Bug (Template) (#339)
hasezoey Jul 19, 2019
b386675
Make Hook Tests Working again (#343)
hasezoey Jul 23, 2019
95c3fa6
Add @mapProp for Maps with tests (#342)
hasezoey Jul 23, 2019
c31be73
Add public buildSchema method with TSDoc (#341)
hasezoey Jul 23, 2019
ea1c0ec
Docs, typedoc (#336)
hasezoey Jul 23, 2019
c4e6eef
Add mongoose alias prop
jinxcifer Mar 20, 2019
339c47e
Adding REGEXP to hook method names
hasezoey Jul 25, 2019
3f4bd6d
Adding @index({}, {weights:{}})
hasezoey Jul 25, 2019
0afcdd8
Split Tests into their own files & add some
hasezoey Jul 24, 2019
a3c7cee
Update Dependencies (#358)
hasezoey Jul 27, 2019
40723fe
isDocument & isDocumentArray type guards
PabloSzx Jul 26, 2019
9a9148e
"Fix" github PR templates
hasezoey Jul 25, 2019
b3780ba
Merge branch 'hasezoey/feature/split_tests' into release5.9
hasezoey Jul 28, 2019
e5d30a8
Merge branch 'hasezoey/feature/githubchanges' into release5.9
hasezoey Jul 28, 2019
ed976a2
Merge branch 'hasezoey/feature/hookREGEXP' into release5.9
hasezoey Jul 28, 2019
8b1161f
Merge branch 'hasezoey/feature/indexWeights' into release5.9
hasezoey Jul 28, 2019
34776fa
Merge branch 'hasezoey/feature/fix263' into release5.9
hasezoey Jul 28, 2019
8d7e324
Merge branch 'PabloSzx/isModel' into release5.9
hasezoey Jul 28, 2019
cf75bd0
Updated prop to allow itemsRef by string
daanrutten Sep 11, 2018
f6ec6b5
Add test for "IRP" and make it working
hasezoey Jul 27, 2019
87aca6f
Merge branch 'hasezoey/feature/fixIRP' into release5.9
hasezoey Jul 28, 2019
c3e2a71
Release 5.9.0
hasezoey Jul 28, 2019
c538ed4
Merge pull request #359 from hasezoey/release5.9
Ben305 Jul 29, 2019
0b0849b
Move the new Tests (from release5.9) into another file
hasezoey Jul 30, 2019
312e281
Merge pull request #364 from hasezoey/splitnewtests
Ben305 Aug 1, 2019
6312381
Adding Maintainer notes
hasezoey Jul 29, 2019
8ddb983
Merge pull request #360 from hasezoey/feature/maintain
Ben305 Aug 2, 2019
0d68100
implement a hack for ObjectID (#363)
hasezoey Aug 2, 2019
58069f5
Add Note for szokodiakos#376
hasezoey Aug 8, 2019
aaec1bf
Merge pull request #377 from hasezoey/feature/adddocnote
Ben305 Aug 10, 2019
af3cf33
Adding note that typegoose uses mongoose strict
hasezoey Aug 10, 2019
2e1655f
Fix the double typeguards
hasezoey Aug 4, 2019
35e1ca1
Merge pull request #378 from hasezoey/feature/addstrictnote
Ben305 Sep 3, 2019
ee37b68
Merge pull request #370 from hasezoey/feature/fixtypeguards
Ben305 Sep 3, 2019
ad1125a
Deprecate szokodiakos/typegoose, use hasezoey/typegoose
hasezoey Sep 4, 2019
2e98d94
Merge pull request #387 from hasezoey/deprecateoriginalrepo
Ben305 Sep 6, 2019
99f6be0
Release 5.9.1
Ben-WD Sep 6, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# How to Contribue

## Before making a Pull Request

- Make sure all tests pass locally
- Make sure you have run tslint & if something should come up, fix it to keep the code in one style
- When you add documentation please make sure to keep the existing style
- Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/), thanks
- Make sure when you make documentation of a something, you use the [TSDoc standard](https://api-extractor.com/pages/tsdoc/doc_comment_syntax/), not JSDoc, thanks

---

## How to structure Commits

```
Some Title
- moving fileA to folderB/
- removing fileB
- adding tests for FeatureX
- adding `@prop({ optionA })`
- adding tsdoc for FeatureX
- modify README to include Docs about A
-
```
*Legend:*
- add `[#1]` at the end when there is an issue for it (and modify it to the actual number)
- the title should be a short introduction like (for small fixes)`Add @mapProp for Maps with tests` (for bigger)`Adding TSDoc`[preferably split the commits when they get to large with adding more features]
- the first word should be "adding" "removing" "moving", expect if it cant be expressed with those

*Note: if you make a Pull Request that dosnt conform with this structure, it will be first rebased and then merged*

---
*this is just the base, changes will occure*
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug
about: Create a bug report
title: ''
labels: bug
assignees: ''
---

---
*please remove the parts in "---"*

- In Versions, only include the Typegoose version you use (NPM or from GIT)
- in "Code Example" add as many code blocks as needed
- in "Do you know *why* it happenes replace the "*no*" if you know why

---

## Versions

- NodeJS: 0.0.0
- Typegoose(NPM): 0.0.0
- Typegoose(GIT): commithash
- mongoose: 0.0.0
- mongodb: 0.0.0

## Code Example

```ts
code here
```

## Do you know *why* it happenes?

*no*
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature parity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Feature parity
about: Ask for feature parity with mongoose
title: '[FP] '
labels: parity
assignees: ''
---

---
*please remove the parts in "---"*

## How to Structure your Feature Parity request

- remove "not needed" from your parity below
- Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/), thanks

---

## Which feature

- [Example Feature 1](documentation_link)
- [Example Feature 2](documentation_link)

## Why do you want it

just because

## Additional Notes

- add it here
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature
about: Request a feature
title: '[Request] '
labels: request
assignees: ''
---

---
*please remove the parts in "---"*

## How to Structure your Feature request

- When you have an Implementation Idea, remove "*no*"
- Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/), thanks

---

## Describe what you need | want

description here

## Do you have already an idea for the implementation?

*no*
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Question
about: Ask a question
title: '[Question] '
labels: question
assignees: ''
---

---
*please remove the parts in "---"*

## What to include in your Questions

- Make sure you provide an understandable question
- Make sure you provide all the needed code
- Make sure you read [Mastering-Markdown](https://guides.github.com/features/mastering-markdown/), thanks

---
19 changes: 19 additions & 0 deletions .github/Notes to Maintainers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Notes to Maintainers

## Before a Merge

- Make sure Travis Builds a passing
- Run the tests locally
- Review the Pull-Request if something should be changed

## How to Merge

Try to to use Fast-Forward merge if it fits with the styles
-> if it dosnt fit, rebase it manually

## Versioning

[look at README#Versioning](../README.md#versioning)

---
*this is just the base, changes will occure*
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
try to use an template, found at .github/PULL_REQUEST_TEMPLATE/
[here](https://github.com/szokodiakos/typegoose/tree/master/.github/PULL_REQUEST_TEMPLATE)
please dont forget to click on raw, and copy that, not the already "compiled" one
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

---
*please remove the parts in "---"*

## Make sure you have done these steps

- Make sure you have Read & followed these steps in [CONTRIBUTING](.github/CONTRIBUTING.md)
- in "Adds Documentation for" remove the "(#) when there is no issue for it
- remove the parts that are not applicable

---

## Adds Documentation for

- @prop({ something }) (#1)
- @prop({ something }) (#2)
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

---
*please remove the parts in "---"*

## Make sure you have done these steps

- Make sure you have Read & followed these steps in [CONTRIBUTING](.github/CONTRIBUTING.md)
- remove the parts that are not applicable

---

## What does the Enchancement do

*description here*

## Related Issues/PR's

- #1
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature parity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

---
*please remove the parts in "---"*

## Make sure you have done these steps

- Make sure you have Read & followed these steps in [CONTRIBUTING](.github/CONTRIBUTING.md)
- remove the parts that are not applicable

---

## What Feature from mongoose

*description here* [link](mongoose feature URL)

## Related Issues/PR's

- #1
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

---
*please remove the parts in "---"*

## Make sure you have done these steps

- Make sure you have Read & followed these steps in [CONTRIBUTING](.github/CONTRIBUTING.md)
- remove the parts that are not applicable

---

## What does the Feature do

*description here*

## Related Issues/PR's

- #1
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

---
*please remove the parts in "---"*

this template is meant for "bug fixes" and "pr fixes"(if its an old pr, and gets remade with todays standards)

## Make sure you have done these steps

- Make sure you have Read & followed these steps in [CONTRIBUTING](.github/CONTRIBUTING.md)
- remove the parts that are not applicable

---

## Collection of what it does / fixes

- {mode} {description}
- adds @prop({ alias })
- moves filea to test/

## Fixes Issues/PR's

- #1
12 changes: 12 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Supported Versions

| Version | Supported |
| --------- | ------------------ |
| latest | :white_check_mark: |
| < latest | :x: |

## Reporting a Vulnerability

Because this is an open-source Project, it can be normally be reported as any other issue
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,12 @@ $RECYCLE.BIN/
build
.env
lib

# ts's build info
.tsbuildinfo

# the config
test/config.json

# typedoc docs folder
doc/
9 changes: 9 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
color: true
recursive: true
require:
- "ts-node/register"
- "source-map-support/register"
extension:
- ts
ui: "bdd"
check-leaks: true
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,6 @@ $RECYCLE.BIN/

build
.env

# ts's build info
.tsbuildinfo
27 changes: 27 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"extension": [
".ts"
],
"exclude": [
"**/*.d.ts"
],
"include": [
"src/**/*.ts"
],
"check-coverage": true,
"per-file": true,
"cache": true,
"all": true,
"reporter": [
"text",
"html"
],
"sourceMap": true,
"instrument": true,
"_comment": "this below is just while porting to gitlab is going on",
"lines": 0,
"statements": 0,
"functions": 0,
"branches": 0
}
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"useTabs": false,
"arrowParens": "avoid",
"endOfLine": "auto",
"insertPragma": true,
"requirePragma": true,
"insertPragma": false,
"printWidth": 120,
"proseWrap": "always"
}
27 changes: 11 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
language: node_js
services:
- mongodb
node_js:
# Test against oldest node version in package.json
- "8"
# Test against highest node version available
- lts/*
env:
- USE_OLDEST_NPM_VERSIONS=0
- USE_OLDEST_NPM_VERSIONS=1
before_install:
- |
if [ $USE_OLDEST_NPM_VERSIONS -eq 1 ]
then
# Test against oldest allowed versions in package.json - Use sed to remove ^ characters
sed -i 's/"\^/"/g' package.json
npm i [email protected] [email protected]
else
npm i mongoose reflect-metadata
fi
script:
# Audit to make sure there are no vulnerabilities, but do not affect the whole build
- (npm audit || exit 0)
# Test everything
- npm test
deploy:
provider: npm
Expand All @@ -29,4 +20,8 @@ deploy:
only:
- master
after_success:
- npm run coverage
# Generate the Coverage only for one version
- |
if [[ $TRAVIS_NODE_VERSION == "lts/*" ]]; then
npm run coverage
fi
Loading