-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bb4e71
commit f3ee651
Showing
15 changed files
with
13,694 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "extends": ["@commitlint/config-conventional"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# For more information see: https://github.com/marketplace/actions/commit-linter | ||
|
||
name: 'Lint Commit Messages' | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
with: | ||
fetch-depth: 0 | ||
- uses: 'wagoid/commitlint-github-action@v2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint | ||
npm run markdownlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"default": true, | ||
"MD013": false, | ||
"MD024": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Changelog | ||
|
||
## [2.1.0](https://github.com/RobinBuschmann/sequelize-typescript/compare/v2.0.0-beta.1...v2.1.0) (2021-02-14) | ||
|
||
Initial release with Changelog. | ||
|
||
### Bug Fixes | ||
|
||
- allow $set null (remove association) ([#774](https://github.com/RobinBuschmann/sequelize-typescript/issues/774)) ([ffe1c78](https://github.com/RobinBuschmann/sequelize-typescript/commit/ffe1c78df73df7f287b8ce345d6ac0df30283723)) | ||
- model associations methods to reflect sequelize v6 ([#888](https://github.com/RobinBuschmann/sequelize-typescript/issues/888)) ([6b1e3ff](https://github.com/RobinBuschmann/sequelize-typescript/commit/6b1e3fffd974f087be2e18258306f81860923ba3)) | ||
- typeof Model errors by using typeof Model generics ([#900](https://github.com/RobinBuschmann/sequelize-typescript/issues/900)) ([b865840](https://github.com/RobinBuschmann/sequelize-typescript/commit/b8658404f12e7a44893c9b8652714473bb25f495)) | ||
|
||
### Features | ||
|
||
- infer bigint data type ([#893](https://github.com/RobinBuschmann/sequelize-typescript/issues/893)) ([7c467d4](https://github.com/RobinBuschmann/sequelize-typescript/commit/7c467d404a200b3153cc7aa2605d1e542bef3da9)) | ||
|
||
## Older versions | ||
|
||
### ⚠️ sequelize@5 | ||
|
||
`sequelize@5` requires `sequelize-typescript@1`. See | ||
[documentation](https://github.com/RobinBuschmann/sequelize-typescript/tree/1.0.0) for version `1.0`. | ||
|
||
```sh | ||
npm install sequelize-typescript@1.0 | ||
``` | ||
|
||
#### V5 Model definition | ||
|
||
```typescript | ||
import { Table, Model } from 'sequelize-typescript' | ||
|
||
@Table | ||
class Person extends Model<Person> {} | ||
``` | ||
|
||
### ⚠️ sequelize@4 | ||
|
||
`sequelize@4` requires `sequelize-typescript@0.6`. See | ||
[documentation](https://github.com/RobinBuschmann/sequelize-typescript/tree/0.6.X) for version `0.6`. | ||
|
||
```sh | ||
npm install sequelize-typescript@0.6 | ||
``` | ||
|
||
### Upgrade to `sequelize-typescript@2` | ||
|
||
- `sequelize-typescript@2` only works with `sequelize@6.2>=`. | ||
For `sequelize@5` use `sequelize-typescript@1.0`. | ||
|
||
#### Breaking Changes | ||
|
||
- All breaking changes of `sequelize@6` are also valid for `sequelize-typescript@2`. | ||
See [Upgrade to v6](https://sequelize.org/master/manual/upgrade-to-v6.html) for details. | ||
- `@types/bluebird` is no longer needed, `sequelize@6` removed usage of `bluebird` | ||
- Sequelize v6.2 introduced additional model attributes typings, which affects how the model is defined. | ||
- See below comparison between V5 and V6 model definition to show how to upgrade models. | ||
- For more details, see [sequelize typescript docs](https://sequelize.org/master/manual/typescript.html). | ||
|
||
### Upgrade to `sequelize-typescript@1` | ||
|
||
`sequelize-typescript@1` only works with `sequelize@5>=`. | ||
For `sequelize@4` & `sequelize@3` use `sequelize-typescript@0.6`. | ||
|
||
#### Breaking Changes @5 | ||
|
||
All breaking changes of `sequelize@5` are also valid for `sequelize-typescript@1`. | ||
See [Upgrade to v5](https://sequelize.org/v5/manual/upgrade-to-v5.html) for details. | ||
|
||
#### Official Sequelize Typings | ||
|
||
sequelize-typescript now uses the official typings bundled with sequelize | ||
(See [this](https://sequelize.org/v5/manual/upgrade-to-v5.html#typescript-support)). | ||
Please note the following details: | ||
|
||
- Most of the sequelize-typescript interfaces of the previous version are replaced by the official ones | ||
- `@types/sequelize` is no longer used | ||
- `@types/bluebird` is no longer an explicit dependency | ||
- The official typings are less strict than the former sequelize-typescript ones |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.