vsrepo 2.5.0 → 2.7.0
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/CHANGELOG.md +611 -531
- package/LICENSE +20 -20
- package/README.md +221 -1243
- package/README.pt-BR.md +221 -1246
- package/dist/VSRepoAdapter.d.ts +12 -0
- package/dist/VSRepoAdapter.js.map +1 -1
- package/dist/VSRepository.d.ts +93 -5
- package/dist/VSRepository.js +116 -35
- package/dist/VSRepository.js.map +1 -1
- package/dist/decorators/dynamic-method.decorator.d.ts +1 -1
- package/dist/decorators/dynamic-method.decorator.js +2 -4
- package/dist/decorators/dynamic-method.decorator.js.map +1 -1
- package/dist/decorators/query-method.decorator.d.ts +3 -24
- package/dist/decorators/query-method.decorator.js +4 -27
- package/dist/decorators/query-method.decorator.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/enums/vsrepo-error-type.enum.d.ts +3 -1
- package/dist/internal/enums/vsrepo-error-type.enum.js +2 -0
- package/dist/internal/enums/vsrepo-error-type.enum.js.map +1 -1
- package/dist/internal/resolvers/dynamic-methods.resolver.d.ts +7 -1
- package/dist/internal/resolvers/dynamic-methods.resolver.js +191 -112
- package/dist/internal/resolvers/dynamic-methods.resolver.js.map +1 -1
- package/dist/internal/utils/vs-logger.util.js.map +1 -1
- package/dist/internal/utils/vs-placeholder-parser.util.d.ts +2 -0
- package/dist/internal/utils/vs-placeholder-parser.util.js +62 -0
- package/dist/internal/utils/vs-placeholder-parser.util.js.map +1 -0
- package/dist/internal/utils/vs-query-builder.util.d.ts +239 -0
- package/dist/internal/utils/vs-query-builder.util.js +401 -0
- package/dist/internal/utils/vs-query-builder.util.js.map +1 -0
- package/dist/internal/utils/vs-raw-query-builder.util.d.ts +238 -0
- package/dist/internal/utils/vs-raw-query-builder.util.js +433 -0
- package/dist/internal/utils/vs-raw-query-builder.util.js.map +1 -0
- package/dist/internal/utils/vs-sql.util.d.ts +100 -0
- package/dist/internal/utils/vs-sql.util.js +151 -0
- package/dist/internal/utils/vs-sql.util.js.map +1 -0
- package/dist/internal/utils/with-db.util.js.map +1 -1
- package/dist/internal/validators/decorators.validator.js +3 -7
- package/dist/internal/validators/decorators.validator.js.map +1 -1
- package/dist/internal/validators/schemas/pagination.schema.d.ts +2 -2
- package/dist/internal/validators/schemas/pagination.schema.js +2 -2
- package/dist/internal/validators/schemas/pagination.schema.js.map +1 -1
- package/dist/internal/validators/schemas/relations.schema.d.ts +4 -0
- package/dist/internal/validators/schemas/relations.schema.js +39 -0
- package/dist/internal/validators/schemas/relations.schema.js.map +1 -0
- package/dist/internal/validators/schemas/see-mode.schema.d.ts +3 -0
- package/dist/internal/validators/schemas/see-mode.schema.js +38 -0
- package/dist/internal/validators/schemas/see-mode.schema.js.map +1 -0
- package/dist/internal/validators/schemas/select.schema.d.ts +4 -0
- package/dist/internal/validators/schemas/select.schema.js +39 -0
- package/dist/internal/validators/schemas/select.schema.js.map +1 -0
- package/dist/internal/validators/vsrepo.validator.js +7 -5
- package/dist/internal/validators/vsrepo.validator.js.map +1 -1
- package/dist/types/dynamic-methods/dynamic-method-info.type.d.ts +1 -0
- package/dist/types/utils/query-args.type.d.ts +1 -4
- package/dist/types/vsrepo/vs-raw-query-builder-cte-query.type.d.ts +8 -0
- package/dist/types/vsrepo/vs-raw-query-builder-cte-query.type.js +3 -0
- package/dist/types/vsrepo/vs-raw-query-builder-cte-query.type.js.map +1 -0
- package/dist/types/vsrepo/vs-raw-query-builder-target.type.d.ts +7 -0
- package/dist/types/vsrepo/vs-raw-query-builder-target.type.js +3 -0
- package/dist/types/vsrepo/vs-raw-query-builder-target.type.js.map +1 -0
- package/dist/types/vsrepo/vsrepo-options.type.d.ts +27 -0
- package/package.json +88 -80
package/package.json
CHANGED
|
@@ -1,80 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vsrepo",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "ORM-agnostic repository pattern library",
|
|
5
|
-
"homepage": "https://github.com/jaobrabo123/VSRepository#readme",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/jaobrabo123/VSRepository.git"
|
|
9
|
-
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"email": "joaodev.azevedo@outlook.com",
|
|
12
|
-
"url": "https://github.com/jaobrabo123/VSRepoDrizzleAdapter/issues"
|
|
13
|
-
},
|
|
14
|
-
"main": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"import": "./dist/index.js",
|
|
20
|
-
"require": "./dist/index.js"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"type": "commonjs",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"README.md",
|
|
27
|
-
"README.pt-BR.md",
|
|
28
|
-
"CHANGELOG.md"
|
|
29
|
-
],
|
|
30
|
-
"engines": {
|
|
31
|
-
"node": ">=18"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
35
|
-
"build": "
|
|
36
|
-
"prepack": "
|
|
37
|
-
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
38
|
-
"test:typing": "tsc --noEmit -p test/tsconfig.json",
|
|
39
|
-
"test:implementation": "jest",
|
|
40
|
-
"test:implementation:watch": "jest --watch",
|
|
41
|
-
"test": "
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"@
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "vsrepo",
|
|
3
|
+
"version": "2.7.0",
|
|
4
|
+
"description": "ORM-agnostic repository pattern library",
|
|
5
|
+
"homepage": "https://github.com/jaobrabo123/VSRepository#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/jaobrabo123/VSRepository.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"email": "joaodev.azevedo@outlook.com",
|
|
12
|
+
"url": "https://github.com/jaobrabo123/VSRepoDrizzleAdapter/issues"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"type": "commonjs",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"README.md",
|
|
27
|
+
"README.pt-BR.md",
|
|
28
|
+
"CHANGELOG.md"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
|
|
35
|
+
"build": "bun run clean && tsc -p tsconfig.build.json",
|
|
36
|
+
"prepack": "bun run build",
|
|
37
|
+
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
38
|
+
"test:typing": "tsc --noEmit -p test/tsconfig.json",
|
|
39
|
+
"test:implementation": "jest",
|
|
40
|
+
"test:implementation:watch": "jest --watch",
|
|
41
|
+
"test": "bun run test:typing && bun run test:implementation",
|
|
42
|
+
"lint": "oxlint --type-aware src/ test/",
|
|
43
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
44
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
45
|
+
"full-validation": "bun run typecheck && bun run lint && bun run format:check && bun run test"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"prisma",
|
|
49
|
+
"typeorm",
|
|
50
|
+
"drizzle",
|
|
51
|
+
"repository",
|
|
52
|
+
"orm",
|
|
53
|
+
"typescript",
|
|
54
|
+
"repository-pattern",
|
|
55
|
+
"vsrepo",
|
|
56
|
+
"vsrepository"
|
|
57
|
+
],
|
|
58
|
+
"author": {
|
|
59
|
+
"email": "joaodev.azevedo@outlook.com",
|
|
60
|
+
"url": "https://github.com/jaobrabo123",
|
|
61
|
+
"name": "João Pedro Azevedo Freire Mecenas"
|
|
62
|
+
},
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@jest/globals": "^30.4.1",
|
|
66
|
+
"@types/jest": "^30.0.0",
|
|
67
|
+
"@types/node": "^25.6.0",
|
|
68
|
+
"cross-env": "^10.1.0",
|
|
69
|
+
"dotenv": "^17.4.2",
|
|
70
|
+
"jest": "^30.4.2",
|
|
71
|
+
"oxlint": "^1.83.0",
|
|
72
|
+
"oxlint-tsgolint": "^7.0.2002",
|
|
73
|
+
"prettier": "^3.9.8",
|
|
74
|
+
"ts-jest": "^29.4.12",
|
|
75
|
+
"tsx": "^4.22.3",
|
|
76
|
+
"typescript": "^6.0.3",
|
|
77
|
+
"zod": "^4.5.1"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"deepmerge": "^4.3.1",
|
|
81
|
+
"reflect-metadata": "^0.2.2",
|
|
82
|
+
"valibot": "^1.4.2"
|
|
83
|
+
},
|
|
84
|
+
"trustedDependencies": [
|
|
85
|
+
"@parcel/watcher",
|
|
86
|
+
"unrs-resolver"
|
|
87
|
+
]
|
|
88
|
+
}
|