Skip to content

Commit 8b0ce56

Browse files
committed
feat: updated deps & github actions workflow & licence
1 parent 7fddc73 commit 8b0ce56

35 files changed

+1150
-370
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [lts/*]
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run tests
28+
run: npm test

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.dockerignore
44
.codebeatignore
55
.codebeatsettings
6+
.github
67

78
.ssh/
89
dist/

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

LICENSE

Lines changed: 585 additions & 13 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# @imqueue/sequelize
22

3-
[![Build Status](https://travis-ci.org/imqueue/sequelize.svg?branch=master)](https://travis-ci.org/imqueue/sequelize)
4-
[![David](https://img.shields.io/david/imqueue/sequelize.svg)](https://david-dm.org/imqueue/sequelize)
5-
[![David](https://img.shields.io/david/dev/imqueue/sequelize.svg)](https://david-dm.org/imqueue/sequelize?type=dev)
3+
[![Build Status](https://img.shields.io/github/actions/workflow/status/imqueue/sequelize/build.yml)](https://github.com/imqueue/sequelize)
64
[![Known Vulnerabilities](https://snyk.io/test/github/imqueue/sequelize/badge.svg?targetFile=package.json)](https://snyk.io/test/github/imqueue/sequelize?targetFile=package.json)
7-
[![License](https://img.shields.io/badge/license-ISC-blue.svg)](https://rawgit.com/imqueue/sequelize/master/LICENSE)
5+
[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://rawgit.com/imqueue/core/master/LICENSE)
86

97
Sequelize ORM refines for @imqueue
108

@@ -46,3 +44,8 @@ const sequelize = database({
4644

4745

4846
~~~
47+
48+
## License
49+
50+
This project is licensed under the GNU General Public License v3.0.
51+
See the [LICENSE](LICENSE)

index.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
/*!
22
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
33
*
4-
* Copyright (c) 2019, imqueue.com <[email protected]>
4+
* I'm Queue Software Project
5+
* Copyright (C) 2025 imqueue.com <[email protected]>
56
*
6-
* Permission to use, copy, modify, and/or distribute this software for any
7-
* purpose with or without fee is hereby granted, provided that the above
8-
* copyright notice and this permission notice appear in all copies.
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
911
*
10-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11-
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12-
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13-
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14-
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15-
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16-
* PERFORMANCE OF THIS SOFTWARE.
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* If you want to use this code in a closed source (commercial) project, you can
21+
* purchase a proprietary commercial license. Please contact us at
22+
* <[email protected]> to get commercial licensing options.
1723
*/
1824
export * from './src';

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"clean:test": "rm -rf .nyc_output coverage",
1818
"clean:doc": "rm -rf docs",
1919
"clean": "npm run clean:test && npm run clean:dts && npm run clean:map && npm run clean:js && npm run clean:doc",
20-
"doc": "npm run clean:doc && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|.nyc_output)/**/*\" --mode file --out ./docs . && npm run show:doc",
20+
"doc": "npm run clean:doc && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|.nyc_output)/**/*\" --out ./docs . && npm run show:doc",
2121
"help": "npm-scripts-help"
2222
},
2323
"repository": {
@@ -29,52 +29,52 @@
2929
},
3030
"homepage": "https://github.com/imqueue/sequelize",
3131
"author": "imqueue.com <[email protected]>",
32-
"license": "ISC",
32+
"license": "GPL-3.0-only",
3333
"dependencies": {
34-
"@imqueue/core": "^1.15.0",
35-
"@imqueue/js": "^1.4.0",
36-
"@imqueue/rpc": "^1.17.0",
34+
"@imqueue/core": "^2.0.2",
35+
"@imqueue/js": "^2.0.0",
36+
"@imqueue/rpc": "^2.0.4",
3737
"@types/bluebird": "^3.5.42",
38-
"@types/validator": "^13.12.2",
38+
"@types/validator": "^13.15.2",
3939
"bluebird": "^3.7.2",
40-
"chalk": "^4.1.2",
41-
"dotenv": "^16.4.5",
42-
"pg": "^8.13.1",
43-
"sequelize": "^5.22.5",
44-
"sequelize-typescript": "^1.1.0",
45-
"sql-formatter": "^15.4.5",
46-
"uuid": "^9.0.0"
40+
"chalk": "^5.4.1",
41+
"dotenv": "^17.0.1",
42+
"pg": "^8.16.3",
43+
"sequelize": "^6.37.7",
44+
"sequelize-typescript": "^2.1.6",
45+
"sql-formatter": "^15.6.6",
46+
"uuid": "^11.1.0"
4747
},
4848
"devDependencies": {
49-
"@eslint/eslintrc": "^3.1.0",
50-
"@eslint/js": "^9.14.0",
51-
"@types/chai": "^5.0.1",
52-
"@types/mocha": "^10.0.9",
49+
"@eslint/eslintrc": "^3.3.1",
50+
"@eslint/js": "^9.30.1",
51+
"@types/chai": "^5.2.2",
52+
"@types/mocha": "^10.0.10",
5353
"@types/mock-require": "^3.0.0",
54-
"@types/node": "^22.9.0",
55-
"@types/pg": "^8.11.10",
56-
"@types/sinon": "^17.0.3",
54+
"@types/node": "^24.0.10",
55+
"@types/pg": "^8.15.4",
56+
"@types/sinon": "^17.0.4",
5757
"@types/uuid": "^10.0.0",
58-
"@typescript-eslint/eslint-plugin": "^8.13.0",
59-
"@typescript-eslint/parser": "^8.13.0",
60-
"@typescript-eslint/typescript-estree": "^8.13.0",
61-
"chai": "^4.3.7",
62-
"eslint": "^9.14.0",
63-
"globals": "^15.12.0",
58+
"@typescript-eslint/eslint-plugin": "^8.35.1",
59+
"@typescript-eslint/parser": "^8.35.1",
60+
"@typescript-eslint/typescript-estree": "^8.35.1",
61+
"chai": "^5.2.0",
62+
"eslint": "^9.30.1",
63+
"globals": "^16.3.0",
6464
"minimist": "^1.2.8",
65-
"mocha": "^10.8.2",
65+
"mocha": "^11.7.1",
6666
"mocha-lcov-reporter": "^1.3.0",
6767
"mock-require": "^3.0.3",
6868
"npm-scripts-help": "^0.8.0",
6969
"nyc": "^17.1.0",
70-
"open": "^8.4.2",
70+
"open": "^10.1.2",
7171
"reflect-metadata": "^0.2.2",
72-
"sequelize-cli": "^6.6.2",
73-
"sinon": "^19.0.2",
72+
"sequelize-cli": "^6.6.3",
73+
"sinon": "^21.0.0",
7474
"source-map-support": "^0.5.21",
7575
"ts-node": "^10.9.2",
76-
"typedoc": "^0.26.11",
77-
"typescript": "^5.0.4"
76+
"typedoc": "^0.28.7",
77+
"typescript": "^5.8.3"
7878
},
7979
"typescript": {
8080
"definitions": "index.d.ts"

src/BaseModel.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
/*!
22
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
33
*
4-
* Copyright (c) 2019, imqueue.com <[email protected]>
4+
* I'm Queue Software Project
5+
* Copyright (C) 2025 imqueue.com <[email protected]>
56
*
6-
* Permission to use, copy, modify, and/or distribute this software for any
7-
* purpose with or without fee is hereby granted, provided that the above
8-
* copyright notice and this permission notice appear in all copies.
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
911
*
10-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11-
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12-
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13-
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14-
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15-
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16-
* PERFORMANCE OF THIS SOFTWARE.
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* If you want to use this code in a closed source (commercial) project, you can
21+
* purchase a proprietary commercial license. Please contact us at
22+
* <[email protected]> to get commercial licensing options.
1723
*/
1824
/**
1925
* This modules provides several additional features on top of

src/Graph.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
/*!
22
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
33
*
4-
* Copyright (c) 2019, imqueue.com <[email protected]>
4+
* I'm Queue Software Project
5+
* Copyright (C) 2025 imqueue.com <[email protected]>
56
*
6-
* Permission to use, copy, modify, and/or distribute this software for any
7-
* purpose with or without fee is hereby granted, provided that the above
8-
* copyright notice and this permission notice appear in all copies.
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
911
*
10-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11-
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12-
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13-
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14-
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15-
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16-
* PERFORMANCE OF THIS SOFTWARE.
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* If you want to use this code in a closed source (commercial) project, you can
21+
* purchase a proprietary commercial license. Please contact us at
22+
* <[email protected]> to get commercial licensing options.
1723
*/
1824
/**
1925
* Graph internal storage data type

src/decorators/AssociatedWith.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
/*!
22
* @imqueue/sequelize - Sequelize ORM refines for @imqueue
33
*
4-
* Copyright (c) 2019, imqueue.com <[email protected]>
4+
* I'm Queue Software Project
5+
* Copyright (C) 2025 imqueue.com <[email protected]>
56
*
6-
* Permission to use, copy, modify, and/or distribute this software for any
7-
* purpose with or without fee is hereby granted, provided that the above
8-
* copyright notice and this permission notice appear in all copies.
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
911
*
10-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11-
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12-
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13-
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14-
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15-
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16-
* PERFORMANCE OF THIS SOFTWARE.
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* If you want to use this code in a closed source (commercial) project, you can
21+
* purchase a proprietary commercial license. Please contact us at
22+
* <[email protected]> to get commercial licensing options.
1723
*/
18-
19-
2024
export interface IAssociated {
2125
model: any;
2226
input: any;
@@ -27,7 +31,7 @@ export interface IAssociated {
2731
* Defines property for build association between filter
2832
* fields and specific model
2933
*
30-
* @param {IAssociated} association - input data
34+
* @param {() => IAssociated} cb - input data
3135
*/
3236
export function AssociatedWith(
3337
cb: () => IAssociated,

0 commit comments

Comments
 (0)