Skip to content

Commit 3cce641

Browse files
committed
Update dependencies for sequelize v7
The dialects are now provided by separate packages. Add the new packages to the CI and documentation.
1 parent 55994de commit 3cce641

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

dev/prepare-ci.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
yarn install --ignore-engines;
44

55
if [ "$DIALECT" = "postgres" ]; then
6-
yarn add pg@^8 pg-hstore@^2 pg-types@^2 --ignore-engines;
6+
yarn add pg@^8 pg-hstore@^2 pg-types@^2 @sequelize/postgres --ignore-engines;
77
elif [ "$DIALECT" = "postgres-native" ]; then
8-
yarn add pg@^8 pg-hstore@^2 pg-types@^2 pg-native --ignore-engines;
8+
yarn add pg@^8 pg-hstore@^2 pg-types@^2 pg-native @sequelize/postgres --ignore-engines;
99
elif [ "$DIALECT" = "mysql" ]; then
10-
yarn add mysql2@^2 --ignore-engines;
10+
yarn add mysql2@^2 @sequelize/mysql --ignore-engines;
1111
elif [ "$DIALECT" = "mariadb" ]; then
12-
yarn add mariadb@^2 --ignore-engines;
12+
yarn add mariadb@^2 @sequelize/mariadb --ignore-engines;
1313
elif [ "$DIALECT" = "sqlite" ]; then
14-
yarn add sqlite3@^5 --ignore-engines;
14+
yarn add sqlite3@^5 @sequelize/sqlite3 --ignore-engines;
1515
elif [ "$DIALECT" = "mssql" ]; then
16-
yarn add tedious@^8 --ignore-engines;
16+
yarn add tedious@^8 @sequelize/mssql --ignore-engines;
1717
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"cross-env": "^7",
1414
"fs-jetpack": "^4",
1515
"sequelize": "^6",
16-
"@sequelize/core": "alpha",
16+
"@sequelize/core": "latest",
1717
"sinon": "^13",
1818
"sinon-chai": "^3"
1919
},

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ You'll need to install the `pg` package and have a postgres database running.
5252

5353
```shell
5454
# Do this only once.
55-
npm install pg
55+
npm install pg @sequelize/postgres
5656
# or
57-
npm install pg-native
57+
npm install pg-native @sequelize/postgres
5858

5959
# if you need to use DataTypes.HSTORE, you also need this dependency
6060
npm install pg-hstore
@@ -76,7 +76,7 @@ npm run stop:postgres
7676

7777
```shell
7878
# Do this only once.
79-
npm install mariadb
79+
npm install mariadb @sequelize/mariadb
8080

8181
# Start the mariadb database using docker.
8282
# Requires docker. You can also run your own database if you prefer.
@@ -93,7 +93,7 @@ npm run stop:mariadb
9393

9494
```shell
9595
# Do this only once.
96-
npm install mysql2
96+
npm install mysql2 @sequelize/mysql
9797

9898
# Start the mysql database using docker.
9999
# Requires docker. You can also run your own database if you prefer.
@@ -110,7 +110,7 @@ npm run stop:mysql
110110

111111
```shell
112112
# Do this only once.
113-
npm install tedious
113+
npm install tedious @sequelize/mssql
114114

115115
# Start the mssql database using docker.
116116
# Requires docker. You can also run your own database if you prefer.

0 commit comments

Comments
 (0)