|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## [2.1.0](https://github.com/RobinBuschmann/sequelize-typescript/compare/v2.0.0-beta.1...v2.1.0) (2021-02-14) |
| 4 | + |
| 5 | +Initial release with Changelog. |
| 6 | + |
| 7 | +### Bug Fixes |
| 8 | + |
| 9 | +- allow $set null (remove association) ([#774](https://github.com/RobinBuschmann/sequelize-typescript/issues/774)) ([ffe1c78](https://github.com/RobinBuschmann/sequelize-typescript/commit/ffe1c78df73df7f287b8ce345d6ac0df30283723)) |
| 10 | +- 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)) |
| 11 | +- 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)) |
| 12 | + |
| 13 | +### Features |
| 14 | + |
| 15 | +- infer bigint data type ([#893](https://github.com/RobinBuschmann/sequelize-typescript/issues/893)) ([7c467d4](https://github.com/RobinBuschmann/sequelize-typescript/commit/7c467d404a200b3153cc7aa2605d1e542bef3da9)) |
| 16 | + |
| 17 | +## Older versions |
| 18 | + |
| 19 | +### ⚠️ sequelize@5 |
| 20 | + |
| 21 | +`sequelize@5` requires `sequelize-typescript@1`. See |
| 22 | +[documentation](https://github.com/RobinBuschmann/sequelize-typescript/tree/1.0.0) for version `1.0`. |
| 23 | + |
| 24 | +```sh |
| 25 | + |
| 26 | +``` |
| 27 | + |
| 28 | +#### V5 Model definition |
| 29 | + |
| 30 | +```typescript |
| 31 | +import { Table, Model } from 'sequelize-typescript' |
| 32 | + |
| 33 | +@Table |
| 34 | +class Person extends Model<Person> {} |
| 35 | +``` |
| 36 | + |
| 37 | +### ⚠️ sequelize@4 |
| 38 | + |
| 39 | +`sequelize@4` requires `[email protected]`. See |
| 40 | +[documentation](https://github.com/RobinBuschmann/sequelize-typescript/tree/0.6.X) for version `0.6`. |
| 41 | + |
| 42 | +```sh |
| 43 | + |
| 44 | +``` |
| 45 | + |
| 46 | +### Upgrade to `sequelize-typescript@2` |
| 47 | + |
| 48 | +- `sequelize-typescript@2` only works with `[email protected]>=`. |
| 49 | + For `sequelize@5` use `[email protected]`. |
| 50 | + |
| 51 | +#### Breaking Changes |
| 52 | + |
| 53 | +- All breaking changes of `sequelize@6` are also valid for `sequelize-typescript@2`. |
| 54 | + See [Upgrade to v6](https://sequelize.org/master/manual/upgrade-to-v6.html) for details. |
| 55 | +- `@types/bluebird` is no longer needed, `sequelize@6` removed usage of `bluebird` |
| 56 | +- Sequelize v6.2 introduced additional model attributes typings, which affects how the model is defined. |
| 57 | +- See below comparison between V5 and V6 model definition to show how to upgrade models. |
| 58 | +- For more details, see [sequelize typescript docs](https://sequelize.org/master/manual/typescript.html). |
| 59 | + |
| 60 | +### Upgrade to `sequelize-typescript@1` |
| 61 | + |
| 62 | +`sequelize-typescript@1` only works with `sequelize@5>=`. |
| 63 | +For `sequelize@4` & `sequelize@3` use `[email protected]`. |
| 64 | + |
| 65 | +#### Breaking Changes @5 |
| 66 | + |
| 67 | +All breaking changes of `sequelize@5` are also valid for `sequelize-typescript@1`. |
| 68 | +See [Upgrade to v5](https://sequelize.org/v5/manual/upgrade-to-v5.html) for details. |
| 69 | + |
| 70 | +#### Official Sequelize Typings |
| 71 | + |
| 72 | +sequelize-typescript now uses the official typings bundled with sequelize |
| 73 | +(See [this](https://sequelize.org/v5/manual/upgrade-to-v5.html#typescript-support)). |
| 74 | +Please note the following details: |
| 75 | + |
| 76 | +- Most of the sequelize-typescript interfaces of the previous version are replaced by the official ones |
| 77 | +- `@types/sequelize` is no longer used |
| 78 | +- `@types/bluebird` is no longer an explicit dependency |
| 79 | +- The official typings are less strict than the former sequelize-typescript ones |
0 commit comments