sequelize-typescript-generator 13.0.0 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,17 +35,17 @@
35
35
 
36
36
  This library is tested on the following databases:
37
37
 
38
- - Postgres (11, 14, 16)
39
- - Mysql (5, 8)
40
- - MariaDB (10, 11)
41
- - SQL Server (2019, 2022)
38
+ - Postgres (16, 18)
39
+ - Mysql (8, 9)
40
+ - MariaDB (11, 12)
41
+ - SQL Server (2022, 2025)
42
42
  - SQLite (3)
43
43
 
44
44
  ## Prerequisites
45
45
  See [sequelize-typescript installation](https://www.npmjs.com/package/sequelize-typescript#installation).
46
46
 
47
47
  You should also install the specific driver library for your database, see
48
- [sequelize documentation](https://sequelize.org/v5/manual/getting-started.html):
48
+ [sequelize documentation](https://sequelize.org/docs/v6/getting-started/):
49
49
  ```shell
50
50
  npm install -S pg pg-hstore # Postgres
51
51
  npm install -S mysql2 # MySQL
@@ -1460,8 +1460,8 @@ export const eslintDefaultConfig = [
1460
1460
  ];
1461
1461
  ```
1462
1462
 
1463
- You can provide your own rules by passing a config file to `--lint-file` / `-L`. Only ESLint flat config files are
1464
- accepted: `.mjs`, `.js`, or `.cjs` modules that export a config array. Legacy `.eslintrc*` files, and configs using
1463
+ You can provide your own rules by passing a config file to `--lint-file` / `-L`. The file must be a JS module that
1464
+ exports an ESLint flat config array (loaded via a dynamic `import()`). Legacy `.eslintrc*` files, and configs using
1465
1465
  `extends`, `env`, or a string `parser`, are rejected — see the
1466
1466
  [ESLint flat config migration guide](https://eslint.org/docs/latest/use/configure/migration-guide).
1467
1467
 
@@ -149,7 +149,7 @@ export const buildConfig = (argv) => {
149
149
  ...argv[aliasesMap.CASE] && { case: parseCase(argv[aliasesMap.CASE]) },
150
150
  ...argv[aliasesMap.ASSOCIATIONS_FILE] && { associationsFile: argv[aliasesMap.ASSOCIATIONS_FILE] },
151
151
  ...(argv[aliasesMap.ASSOCIATIONS] === false && { associations: false }),
152
- noViews: !!argv[aliasesMap.DISABLE_VIEWS],
152
+ noViews: !!argv[aliasesMap.DISABLE_VIEWS] || argv['views'] === false,
153
153
  },
154
154
  output: {
155
155
  outDir: argv[aliasesMap.OUTPUT_DIR] ?
@@ -43,7 +43,7 @@ const sequelizeDataTypesMap = {
43
43
  json: DataTypes.JSON,
44
44
  };
45
45
  const jsDataTypesMap = {
46
- bigint: 'number',
46
+ bigint: 'string',
47
47
  smallint: 'number',
48
48
  mediumint: 'number',
49
49
  tinyint: 'number',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sequelize-typescript-generator",
3
- "version": "13.0.0",
4
- "description": "Automatically generates typescript models compatible with sequelize-typescript library (https://www.npmjs.com/package/sequelize-typescript) directly from your source database.",
3
+ "version": "13.0.1",
4
+ "description": "Automatically generate type-safe Sequelize models from your source database via the TypeScript compiler API — native or sequelize-typescript (decorators) format.",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "types": "build/index.d.ts",
@@ -18,6 +18,9 @@
18
18
  "engines": {
19
19
  "node": ">=22.13.0"
20
20
  },
21
+ "files": [
22
+ "build"
23
+ ],
21
24
  "scripts": {
22
25
  "clean": "rm -fr build",
23
26
  "lint": "eslint --fix --ext .ts output/*.ts",
@@ -1 +0,0 @@
1
- github: [spinlud]
@@ -1,224 +0,0 @@
1
- name: ci
2
-
3
- on:
4
- pull_request:
5
- push:
6
- branches:
7
- - master
8
- tags:
9
- - "v*"
10
- schedule:
11
- # Weekly full matrix, Mondays at 04:00 UTC.
12
- - cron: "0 4 * * 1"
13
- workflow_dispatch:
14
-
15
- env:
16
- NODE_VERSION: "22.13"
17
-
18
- jobs:
19
- checks:
20
- runs-on: ubuntu-latest
21
- steps:
22
- - uses: actions/checkout@v4
23
-
24
- - uses: actions/setup-node@v4
25
- with:
26
- node-version: ${{ env.NODE_VERSION }}
27
- cache: npm
28
-
29
- - name: Install
30
- run: npm ci
31
-
32
- # Type check stands in for lint: the repo has no ESLint config for its own source.
33
- - name: Lint (type check)
34
- run: npx tsc --noEmit
35
-
36
- - name: Build
37
- run: npm run build
38
-
39
- - name: Unit tests
40
- run: npm run test:unit
41
-
42
- sqlite:
43
- runs-on: ubuntu-latest
44
- needs: checks
45
- steps:
46
- - uses: actions/checkout@v4
47
-
48
- - uses: actions/setup-node@v4
49
- with:
50
- node-version: ${{ env.NODE_VERSION }}
51
- cache: npm
52
-
53
- - name: Install
54
- run: npm ci
55
-
56
- - name: SQLite tests
57
- run: npm run test:sqlite
58
-
59
- set-matrix:
60
- runs-on: ubuntu-latest
61
- needs: checks
62
- outputs:
63
- latest: ${{ steps.matrix.outputs.latest }}
64
- full: ${{ steps.matrix.outputs.full }}
65
- steps:
66
- - name: Build matrices
67
- id: matrix
68
- run: |
69
- latest='[
70
- {"dialect":"postgres","image":"postgres:18","container_port":5432},
71
- {"dialect":"mysql","image":"mysql:9.7","container_port":3306},
72
- {"dialect":"mariadb","image":"mariadb:12.3","container_port":3306},
73
- {"dialect":"mssql","image":"mcr.microsoft.com/mssql/server:2025-latest","container_port":1433}
74
- ]'
75
- full='[
76
- {"dialect":"postgres","image":"postgres:18","container_port":5432},
77
- {"dialect":"postgres","image":"postgres:16","container_port":5432},
78
- {"dialect":"mysql","image":"mysql:9.7","container_port":3306},
79
- {"dialect":"mysql","image":"mysql:8.4","container_port":3306},
80
- {"dialect":"mariadb","image":"mariadb:12.3","container_port":3306},
81
- {"dialect":"mariadb","image":"mariadb:11.4","container_port":3306},
82
- {"dialect":"mssql","image":"mcr.microsoft.com/mssql/server:2025-latest","container_port":1433},
83
- {"dialect":"mssql","image":"mcr.microsoft.com/mssql/server:2022-latest","container_port":1433}
84
- ]'
85
- echo "latest=$(echo "$latest" | jq -c .)" >> "$GITHUB_OUTPUT"
86
- echo "full=$(echo "$full" | jq -c .)" >> "$GITHUB_OUTPUT"
87
-
88
- integration-latest:
89
- runs-on: ubuntu-latest
90
- needs: set-matrix
91
- strategy:
92
- fail-fast: false
93
- matrix:
94
- include: ${{ fromJson(needs.set-matrix.outputs.latest) }}
95
- services:
96
- db:
97
- image: ${{ matrix.image }}
98
- env:
99
- POSTGRES_DB: testdb
100
- POSTGRES_USER: sa
101
- POSTGRES_PASSWORD: Passw0rd88!
102
- MYSQL_DATABASE: testdb
103
- MYSQL_USER: sa
104
- MYSQL_PASSWORD: Passw0rd88!
105
- MYSQL_ROOT_PASSWORD: Passw0rd88!
106
- MARIADB_DATABASE: testdb
107
- MARIADB_USER: sa
108
- MARIADB_PASSWORD: Passw0rd88!
109
- MARIADB_ROOT_PASSWORD: Passw0rd88!
110
- ACCEPT_EULA: "Y"
111
- SA_PASSWORD: Passw0rd88!
112
- MSSQL_SA_PASSWORD: Passw0rd88!
113
- ports:
114
- - 1234:${{ matrix.container_port }}
115
- env:
116
- TEST_DB_DIALECT: ${{ matrix.dialect }}
117
- TEST_DB_HOST: localhost
118
- TEST_DB_PORT: 1234
119
- steps:
120
- - uses: actions/checkout@v4
121
-
122
- - uses: actions/setup-node@v4
123
- with:
124
- node-version: ${{ env.NODE_VERSION }}
125
- cache: npm
126
-
127
- - name: Install
128
- run: npm ci
129
-
130
- - name: Wait for database
131
- run: npx tsx src/tests/integration/wait-for-db.ts
132
-
133
- - name: Integration tests (${{ matrix.image }})
134
- run: npm run test:integration
135
-
136
- integration-full:
137
- runs-on: ubuntu-latest
138
- needs: set-matrix
139
- if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
140
- strategy:
141
- fail-fast: false
142
- matrix:
143
- include: ${{ fromJson(needs.set-matrix.outputs.full) }}
144
- services:
145
- db:
146
- image: ${{ matrix.image }}
147
- env:
148
- POSTGRES_DB: testdb
149
- POSTGRES_USER: sa
150
- POSTGRES_PASSWORD: Passw0rd88!
151
- MYSQL_DATABASE: testdb
152
- MYSQL_USER: sa
153
- MYSQL_PASSWORD: Passw0rd88!
154
- MYSQL_ROOT_PASSWORD: Passw0rd88!
155
- MARIADB_DATABASE: testdb
156
- MARIADB_USER: sa
157
- MARIADB_PASSWORD: Passw0rd88!
158
- MARIADB_ROOT_PASSWORD: Passw0rd88!
159
- ACCEPT_EULA: "Y"
160
- SA_PASSWORD: Passw0rd88!
161
- MSSQL_SA_PASSWORD: Passw0rd88!
162
- ports:
163
- - 1234:${{ matrix.container_port }}
164
- env:
165
- TEST_DB_DIALECT: ${{ matrix.dialect }}
166
- TEST_DB_HOST: localhost
167
- TEST_DB_PORT: 1234
168
- steps:
169
- - uses: actions/checkout@v4
170
-
171
- - uses: actions/setup-node@v4
172
- with:
173
- node-version: ${{ env.NODE_VERSION }}
174
- cache: npm
175
-
176
- - name: Install
177
- run: npm ci
178
-
179
- - name: Wait for database
180
- run: npx tsx src/tests/integration/wait-for-db.ts
181
-
182
- - name: Integration tests (${{ matrix.image }})
183
- run: npm run test:integration
184
-
185
- publish:
186
- runs-on: ubuntu-latest
187
- if: startsWith(github.ref, 'refs/tags/v')
188
- needs:
189
- - sqlite
190
- - integration-latest
191
- - integration-full
192
- permissions:
193
- id-token: write
194
- contents: read
195
- steps:
196
- - uses: actions/checkout@v4
197
-
198
- - uses: actions/setup-node@v4
199
- with:
200
- node-version: ${{ env.NODE_VERSION }}
201
- cache: npm
202
- registry-url: "https://registry.npmjs.org"
203
-
204
- - name: Upgrade npm for trusted publishing
205
- # npm 11.x provides OIDC trusted publishing and supports Node 22.13
206
- run: npm install -g npm@11
207
-
208
- - name: Install
209
- run: npm ci
210
-
211
- - name: Build
212
- run: npm run build
213
-
214
- - name: Resolve npm dist-tag
215
- id: dist_tag
216
- run: |
217
- if [[ "${GITHUB_REF_NAME}" == *-* ]]; then
218
- echo "tag=next" >> "$GITHUB_OUTPUT"
219
- else
220
- echo "tag=latest" >> "$GITHUB_OUTPUT"
221
- fi
222
-
223
- - name: Publish
224
- run: npm publish --provenance --access public --tag ${{ steps.dist_tag.outputs.tag }}
@@ -1,212 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- // Run the CLI from source (tsx) against a sqlite DB, emitting native models.
9
- // Point -S at your own sqlite file (create .scratch/local.sqlite first).
10
- "type": "node",
11
- "request": "launch",
12
- "name": "CLI: sqlite → native",
13
- "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx",
14
- "program": "${workspaceFolder}/src/bin/cli.ts",
15
- "args": [
16
- "-D", "sqlite",
17
- "-S", "${workspaceFolder}/.scratch/local.sqlite",
18
- "-o", "${workspaceFolder}/output-models",
19
- "-F", "native",
20
- "--clean"
21
- ],
22
- "console": "integratedTerminal",
23
- "skipFiles": ["<node_internals>/**"]
24
- },
25
- {
26
- // Same as above but emitting sequelize-typescript decorator models.
27
- "type": "node",
28
- "request": "launch",
29
- "name": "CLI: sqlite → decorators",
30
- "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx",
31
- "program": "${workspaceFolder}/src/bin/cli.ts",
32
- "args": [
33
- "-D", "sqlite",
34
- "-S", "${workspaceFolder}/.scratch/local.sqlite",
35
- "-o", "${workspaceFolder}/output-models",
36
- "-F", "decorators",
37
- "--clean"
38
- ],
39
- "console": "integratedTerminal",
40
- "skipFiles": ["<node_internals>/**"]
41
- },
42
- {
43
- // Print CLI usage.
44
- "type": "node",
45
- "request": "launch",
46
- "name": "CLI: --help",
47
- "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx",
48
- "program": "${workspaceFolder}/src/bin/cli.ts",
49
- "args": ["--help"],
50
- "console": "integratedTerminal",
51
- "skipFiles": ["<node_internals>/**"]
52
- },
53
- {
54
- // Run the CLI against a sqlite DB whose path and output format you choose at launch.
55
- "type": "node",
56
- "request": "launch",
57
- "name": "CLI: sqlite (prompt path + format)",
58
- "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx",
59
- "program": "${workspaceFolder}/src/bin/cli.ts",
60
- "args": [
61
- "-D", "sqlite",
62
- "-S", "${input:sqliteStorage}",
63
- "-o", "${workspaceFolder}/output-models",
64
- "-F", "${input:format}",
65
- "--clean"
66
- ],
67
- "console": "integratedTerminal",
68
- "skipFiles": ["<node_internals>/**"]
69
- },
70
- {
71
- // Run all unit tests under the Node debugger.
72
- "type": "node",
73
- "request": "launch",
74
- "name": "Jest: unit (all)",
75
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
76
- "args": ["src/tests/unit", "--runInBand"],
77
- "env": {
78
- "NODE_OPTIONS": "--experimental-vm-modules"
79
- },
80
- "console": "integratedTerminal",
81
- "skipFiles": ["<node_internals>/**"]
82
- },
83
- {
84
- // Run all sqlite integration tests under the Node debugger.
85
- "type": "node",
86
- "request": "launch",
87
- "name": "Jest: sqlite integration (all)",
88
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
89
- "args": ["src/tests/integration/sqlite", "--runInBand"],
90
- "env": {
91
- "NODE_OPTIONS": "--experimental-vm-modules"
92
- },
93
- "console": "integratedTerminal",
94
- "skipFiles": ["<node_internals>/**"]
95
- },
96
- {
97
- // Run the currently open test file under the Node debugger.
98
- "type": "node",
99
- "request": "launch",
100
- "name": "Jest: current file",
101
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
102
- "args": ["${relativeFile}", "--runInBand"],
103
- "env": {
104
- "NODE_OPTIONS": "--experimental-vm-modules"
105
- },
106
- "console": "integratedTerminal",
107
- "skipFiles": ["<node_internals>/**"]
108
- },
109
- {
110
- // Regenerate sqlite golden fixtures for the golden tests.
111
- "type": "node",
112
- "request": "launch",
113
- "name": "Jest: sqlite golden update",
114
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
115
- "args": ["src/tests/integration/sqlite", "-t", "golden", "--runInBand"],
116
- "env": {
117
- "NODE_OPTIONS": "--experimental-vm-modules",
118
- "GOLDEN_UPDATE": "1"
119
- },
120
- "console": "integratedTerminal",
121
- "skipFiles": ["<node_internals>/**"]
122
- },
123
- {
124
- // Debug the postgres integration tests. preLaunchTask brings the DB up and waits;
125
- // the container is left running afterwards — run the "db: down (all)" task to stop it.
126
- "type": "node",
127
- "request": "launch",
128
- "name": "Integration: postgres (debug)",
129
- "preLaunchTask": "db: postgres (up + wait)",
130
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
131
- "args": ["src/tests/integration/postgres", "--runInBand"],
132
- "env": {
133
- "NODE_OPTIONS": "--experimental-vm-modules",
134
- "TEST_DB_DIALECT": "postgres",
135
- "TEST_DB_HOST": "localhost",
136
- "TEST_DB_PORT": "1234"
137
- },
138
- "console": "integratedTerminal",
139
- "skipFiles": ["<node_internals>/**"]
140
- },
141
- {
142
- // Debug the mysql integration tests. preLaunchTask brings the DB up and waits;
143
- // the container is left running afterwards — run the "db: down (all)" task to stop it.
144
- "type": "node",
145
- "request": "launch",
146
- "name": "Integration: mysql (debug)",
147
- "preLaunchTask": "db: mysql (up + wait)",
148
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
149
- "args": ["src/tests/integration/mysql", "--runInBand"],
150
- "env": {
151
- "NODE_OPTIONS": "--experimental-vm-modules",
152
- "TEST_DB_DIALECT": "mysql",
153
- "TEST_DB_HOST": "localhost",
154
- "TEST_DB_PORT": "1234"
155
- },
156
- "console": "integratedTerminal",
157
- "skipFiles": ["<node_internals>/**"]
158
- },
159
- {
160
- // Debug the mariadb integration tests. preLaunchTask brings the DB up and waits;
161
- // the container is left running afterwards — run the "db: down (all)" task to stop it.
162
- "type": "node",
163
- "request": "launch",
164
- "name": "Integration: mariadb (debug)",
165
- "preLaunchTask": "db: mariadb (up + wait)",
166
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
167
- "args": ["src/tests/integration/mariadb", "--runInBand"],
168
- "env": {
169
- "NODE_OPTIONS": "--experimental-vm-modules",
170
- "TEST_DB_DIALECT": "mariadb",
171
- "TEST_DB_HOST": "localhost",
172
- "TEST_DB_PORT": "1234"
173
- },
174
- "console": "integratedTerminal",
175
- "skipFiles": ["<node_internals>/**"]
176
- },
177
- {
178
- // Debug the mssql integration tests. preLaunchTask brings the DB up and waits;
179
- // the container is left running afterwards — run the "db: down (all)" task to stop it.
180
- // Requires Node <= 23 locally (tedious/SlowBuffer broken on Node >= 24).
181
- "type": "node",
182
- "request": "launch",
183
- "name": "Integration: mssql (debug)",
184
- "preLaunchTask": "db: mssql (up + wait)",
185
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
186
- "args": ["src/tests/integration/mssql", "--runInBand"],
187
- "env": {
188
- "NODE_OPTIONS": "--experimental-vm-modules",
189
- "TEST_DB_DIALECT": "mssql",
190
- "TEST_DB_HOST": "localhost",
191
- "TEST_DB_PORT": "1234"
192
- },
193
- "console": "integratedTerminal",
194
- "skipFiles": ["<node_internals>/**"]
195
- }
196
- ],
197
- "inputs": [
198
- {
199
- "id": "sqliteStorage",
200
- "type": "promptString",
201
- "description": "Path to the sqlite database file",
202
- "default": "${workspaceFolder}/.scratch/local.sqlite"
203
- },
204
- {
205
- "id": "format",
206
- "type": "pickString",
207
- "description": "Output format",
208
- "options": ["native", "decorators"],
209
- "default": "native"
210
- }
211
- ]
212
- }
@@ -1,95 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- // Bring the postgres container up (idempotent) and wait until it accepts connections.
6
- "label": "db: postgres (up + wait)",
7
- "type": "shell",
8
- "command": "docker compose --profile postgres up -d && TEST_DB_DIALECT=postgres TEST_DB_HOST=localhost TEST_DB_PORT=1234 npx tsx src/tests/integration/wait-for-db.ts",
9
- "problemMatcher": []
10
- },
11
- {
12
- // Bring the mysql container up (idempotent) and wait until it accepts connections.
13
- "label": "db: mysql (up + wait)",
14
- "type": "shell",
15
- "command": "docker compose --profile mysql up -d && TEST_DB_DIALECT=mysql TEST_DB_HOST=localhost TEST_DB_PORT=1234 npx tsx src/tests/integration/wait-for-db.ts",
16
- "problemMatcher": []
17
- },
18
- {
19
- // Bring the mariadb container up (idempotent) and wait until it accepts connections.
20
- "label": "db: mariadb (up + wait)",
21
- "type": "shell",
22
- "command": "docker compose --profile mariadb up -d && TEST_DB_DIALECT=mariadb TEST_DB_HOST=localhost TEST_DB_PORT=1234 npx tsx src/tests/integration/wait-for-db.ts",
23
- "problemMatcher": []
24
- },
25
- {
26
- // Bring the mssql container up (idempotent) and wait until it accepts connections.
27
- "label": "db: mssql (up + wait)",
28
- "type": "shell",
29
- "command": "docker compose --profile mssql up -d && TEST_DB_DIALECT=mssql TEST_DB_HOST=localhost TEST_DB_PORT=1234 npx tsx src/tests/integration/wait-for-db.ts",
30
- "problemMatcher": []
31
- },
32
- {
33
- // Tear down every dialect container and remove its volumes.
34
- "label": "db: down (all)",
35
- "type": "shell",
36
- "command": "docker compose --profile postgres --profile mysql --profile mariadb --profile mssql down -v",
37
- "problemMatcher": []
38
- },
39
- {
40
- // Full postgres integration cycle: up, wait, jest, down.
41
- "label": "Integration: postgres (like CI)",
42
- "type": "npm",
43
- "script": "test:postgres",
44
- "problemMatcher": []
45
- },
46
- {
47
- // Full mysql integration cycle: up, wait, jest, down.
48
- "label": "Integration: mysql (like CI)",
49
- "type": "npm",
50
- "script": "test:mysql",
51
- "problemMatcher": []
52
- },
53
- {
54
- // Full mariadb integration cycle: up, wait, jest, down.
55
- "label": "Integration: mariadb (like CI)",
56
- "type": "npm",
57
- "script": "test:mariadb",
58
- "problemMatcher": []
59
- },
60
- {
61
- // Full mssql integration cycle: up, wait, jest, down.
62
- // Requires Node <= 23 locally — tedious/SlowBuffer is broken on Node >= 24.
63
- "label": "Integration: mssql (like CI)",
64
- "type": "npm",
65
- "script": "test:mssql",
66
- "problemMatcher": []
67
- },
68
- {
69
- // Run every dialect SEQUENTIALLY: all Docker dialects share host port 1234, and each
70
- // wrapper tears its container down before the next starts, so they cannot overlap.
71
- "label": "Integration: all dialects (like CI)",
72
- "type": "shell",
73
- "command": "npm run test:postgres && npm run test:mysql && npm run test:mariadb && npm run test:mssql && npm run test:sqlite",
74
- "group": {
75
- "kind": "test",
76
- "isDefault": true
77
- },
78
- "problemMatcher": []
79
- },
80
- {
81
- // Run the unit test suite.
82
- "label": "Test: unit",
83
- "type": "npm",
84
- "script": "test:unit",
85
- "problemMatcher": []
86
- },
87
- {
88
- // Run the sqlite integration suite (no container needed).
89
- "label": "Test: sqlite",
90
- "type": "npm",
91
- "script": "test:sqlite",
92
- "problemMatcher": []
93
- }
94
- ]
95
- }
package/CHANGELOG.md DELETED
@@ -1,47 +0,0 @@
1
- # Change Log
2
-
3
- ---
4
-
5
- ### 13.0.0
6
- #### Breaking changes:
7
- * Native is now the default output format; pass `--format decorators` for the old `sequelize-typescript` decorators output.
8
- * ESM-only package; Node `>=22.13.0` required.
9
- * SQLite driver switched to `@vscode/sqlite3` (`sqlite3` is no longer supported).
10
- * Associations are discovered from foreign keys by default; `--no-associations` restores the old behaviour.
11
- * `--lint-file` accepts flat config files only; legacy `.eslintrc*` files fail fast.
12
- * Deep imports under `build/` are closed by the package `exports` map (root entry only).
13
-
14
- #### Minor changes and bug fixes:
15
- * New `--paranoid` flag: emit paranoid table options for tables with a `deleted_at`/`deletedAt` column (requires `--timestamps`).
16
- * `createDialect` factory exported from the package root.
17
- * SQL Server `schema` in table options and `hasTrigger` detection.
18
- * See `docs/migration/12-to-13.md` for the full migration guide.
19
-
20
- ---
21
-
22
- ### 10.1.0
23
- #### Breaking changes:
24
-
25
- #### Minor changes and bug fixes:
26
- * Libraries update
27
- * Changed node.js version to v14.21.3 to test latest versions of `typescript` using `jest`
28
-
29
- ---
30
-
31
- ### 10.0.0
32
- #### Breaking changes:
33
- * Typescript: `4.9.4` -> `5.0.2`
34
- * MySQL driver: `mysql2@2.3.3` -> `mysql2@3.2.0`
35
-
36
- #### Minor changes and bug fixes:
37
- * Added change log file
38
-
39
- ---
40
-
41
- ### 9.0.3
42
- #### Breaking changes:
43
- * NA
44
- #### Minor changes and bug fixes:
45
- * NA
46
-
47
- ---
package/CLAUDE.md DELETED
@@ -1,13 +0,0 @@
1
- ## Agent skills
2
-
3
- ### Issue tracker
4
-
5
- Issues are tracked in this repo's GitHub Issues via the `gh` CLI. See `docs/agents/issue-tracker.md`.
6
-
7
- ### Triage labels
8
-
9
- Default triage vocabulary (`needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix`). See `docs/agents/triage-labels.md`.
10
-
11
- ### Domain docs
12
-
13
- Single-context: `CONTEXT.md` + `docs/adr/` at the repo root. See `docs/agents/domain.md`.