@schorts/shared-kernel 1.0.1 โ 1.0.3
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 +18 -0
- package/README.md +8 -2
- package/package.json +12 -204
package/CHANGELOG
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.3] - 2025-09-30
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- This CHANGELOG file to keep track of the relevant changes.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Removed indirect dependencies from the `package.json`.
|
|
17
|
+
|
|
18
|
+
[1.0.3]: https://github.com/schorts99/shared-kernel/releases/tag/v1.0.3
|
package/README.md
CHANGED
|
@@ -73,7 +73,12 @@ This kernel is built around:
|
|
|
73
73
|
## ๐ฆ Example Usage
|
|
74
74
|
|
|
75
75
|
```ts
|
|
76
|
-
import { Criteria
|
|
76
|
+
import { Criteria } from "@schorts/shared-kernel/criteria";
|
|
77
|
+
import { FetchHTTPProvider } from "@schorts/shared-kernel/http";
|
|
78
|
+
import { JSONAPIConnector } from "@schorts/shared-kernel/json-api";
|
|
79
|
+
|
|
80
|
+
// Didn't know what url use for the example hehe
|
|
81
|
+
const usersURL = new URL("https://github.com/schorts99");
|
|
77
82
|
|
|
78
83
|
const criteria = new Criteria()
|
|
79
84
|
.where("status", "EQUAL", "active")
|
|
@@ -82,7 +87,8 @@ const criteria = new Criteria()
|
|
|
82
87
|
|
|
83
88
|
const connector = new JSONAPIConnector(new FetchHTTPProvider());
|
|
84
89
|
|
|
85
|
-
|
|
90
|
+
// UserModel is your own Model
|
|
91
|
+
const users = await connector.findMany<UserModel>(usersURL, criteria);
|
|
86
92
|
```
|
|
87
93
|
|
|
88
94
|
## ๐งช Testing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schorts/shared-kernel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A modular, type-safe foundation for building expressive, maintainable applications. This package provides core abstractions for domain modeling, HTTP integration, authentication, state management, and more โ designed to be framework-agnostic and highly extensible.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"test:coverage": "jest --coverage",
|
|
62
62
|
"test:ci": "jest --ci --coverage --watchAll=false"
|
|
63
63
|
},
|
|
64
|
-
"author": "Jorge Castillo (https://github.com/
|
|
64
|
+
"author": "Jorge Castillo (https://github.com/schorts99)",
|
|
65
65
|
"license": "LGPL-3.0-or-later",
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@jest/globals": "^30.1.2",
|
|
@@ -73,217 +73,25 @@
|
|
|
73
73
|
"ts-jest": "^29.4.4",
|
|
74
74
|
"typescript": "^5.9.2"
|
|
75
75
|
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"ansi-escapes": "^4.3.2",
|
|
78
|
-
"ansi-regex": "^6.2.2",
|
|
79
|
-
"ansi-styles": "^4.3.0",
|
|
80
|
-
"anymatch": "^3.1.3",
|
|
81
|
-
"argparse": "^1.0.10",
|
|
82
|
-
"babel-jest": "^30.1.2",
|
|
83
|
-
"babel-plugin-istanbul": "^7.0.1",
|
|
84
|
-
"babel-plugin-jest-hoist": "^30.0.1",
|
|
85
|
-
"babel-preset-current-node-syntax": "^1.2.0",
|
|
86
|
-
"babel-preset-jest": "^30.0.1",
|
|
87
|
-
"balanced-match": "^1.0.2",
|
|
88
|
-
"baseline-browser-mapping": "^2.8.6",
|
|
89
|
-
"brace-expansion": "^2.0.2",
|
|
90
|
-
"braces": "^3.0.3",
|
|
91
|
-
"browserslist": "^4.26.2",
|
|
92
|
-
"bs-logger": "^0.2.6",
|
|
93
|
-
"bser": "^2.1.1",
|
|
94
|
-
"buffer-from": "^1.1.2",
|
|
95
|
-
"callsites": "^3.1.0",
|
|
96
|
-
"camelcase": "^5.3.1",
|
|
97
|
-
"caniuse-lite": "^1.0.30001743",
|
|
98
|
-
"chalk": "^4.1.2",
|
|
99
|
-
"char-regex": "^1.0.2",
|
|
100
|
-
"ci-info": "^4.3.0",
|
|
101
|
-
"cjs-module-lexer": "^2.1.0",
|
|
102
|
-
"cliui": "^8.0.1",
|
|
103
|
-
"co": "^4.6.0",
|
|
104
|
-
"collect-v8-coverage": "^1.0.2",
|
|
105
|
-
"color-convert": "^2.0.1",
|
|
106
|
-
"color-name": "^1.1.4",
|
|
107
|
-
"concat-map": "^0.0.1",
|
|
108
|
-
"convert-source-map": "^2.0.0",
|
|
109
|
-
"cross-spawn": "^7.0.6",
|
|
110
|
-
"dateformat": "^3.0.2",
|
|
111
|
-
"debug": "^4.4.3",
|
|
112
|
-
"dedent": "^1.7.0",
|
|
113
|
-
"deepmerge": "^4.3.1",
|
|
114
|
-
"detect-newline": "^3.1.0",
|
|
115
|
-
"eastasianwidth": "^0.2.0",
|
|
116
|
-
"electron-to-chromium": "^1.5.223",
|
|
117
|
-
"emittery": "^0.13.1",
|
|
118
|
-
"emoji-regex": "^9.2.2",
|
|
119
|
-
"error-ex": "^1.3.4",
|
|
120
|
-
"escalade": "^3.2.0",
|
|
121
|
-
"escape-string-regexp": "^2.0.0",
|
|
122
|
-
"esprima": "^4.0.1",
|
|
123
|
-
"execa": "^5.1.1",
|
|
124
|
-
"exit-x": "^0.2.2",
|
|
125
|
-
"expect": "^30.1.2",
|
|
126
|
-
"fast-json-stable-stringify": "^2.1.0",
|
|
127
|
-
"fb-watchman": "^2.0.2",
|
|
128
|
-
"fill-range": "^7.1.1",
|
|
129
|
-
"find-up": "^4.1.0",
|
|
130
|
-
"foreground-child": "^3.3.1",
|
|
131
|
-
"fs.realpath": "^1.0.0",
|
|
132
|
-
"gensync": "^1.0.0-beta.2",
|
|
133
|
-
"get-caller-file": "^2.0.5",
|
|
134
|
-
"get-package-type": "^0.1.0",
|
|
135
|
-
"get-stream": "^6.0.1",
|
|
136
|
-
"glob": "^10.4.5",
|
|
137
|
-
"graceful-fs": "^4.2.11",
|
|
138
|
-
"handlebars": "^4.7.8",
|
|
139
|
-
"has-flag": "^4.0.0",
|
|
140
|
-
"html-escaper": "^2.0.2",
|
|
141
|
-
"human-signals": "^2.1.0",
|
|
142
|
-
"import-local": "^3.2.0",
|
|
143
|
-
"imurmurhash": "^0.1.4",
|
|
144
|
-
"inflight": "^1.0.6",
|
|
145
|
-
"inherits": "^2.0.4",
|
|
146
|
-
"is-arrayish": "^0.2.1",
|
|
147
|
-
"is-fullwidth-code-point": "^3.0.0",
|
|
148
|
-
"is-generator-fn": "^2.1.0",
|
|
149
|
-
"is-number": "^7.0.0",
|
|
150
|
-
"is-stream": "^2.0.1",
|
|
151
|
-
"isexe": "^2.0.0",
|
|
152
|
-
"istanbul-lib-coverage": "^3.2.2",
|
|
153
|
-
"istanbul-lib-instrument": "^6.0.3",
|
|
154
|
-
"istanbul-lib-report": "^3.0.1",
|
|
155
|
-
"istanbul-lib-source-maps": "^5.0.6",
|
|
156
|
-
"istanbul-reports": "^3.2.0",
|
|
157
|
-
"jackspeak": "^3.4.3",
|
|
158
|
-
"jest-changed-files": "^30.0.5",
|
|
159
|
-
"jest-circus": "^30.1.3",
|
|
160
|
-
"jest-cli": "^30.1.3",
|
|
161
|
-
"jest-config": "^30.1.3",
|
|
162
|
-
"jest-diff": "^30.1.2",
|
|
163
|
-
"jest-docblock": "^30.0.1",
|
|
164
|
-
"jest-each": "^30.1.0",
|
|
165
|
-
"jest-environment-node": "^30.1.2",
|
|
166
|
-
"jest-haste-map": "^30.1.0",
|
|
167
|
-
"jest-leak-detector": "^30.1.0",
|
|
168
|
-
"jest-matcher-utils": "^30.1.2",
|
|
169
|
-
"jest-message-util": "^30.1.0",
|
|
170
|
-
"jest-mock": "^30.0.5",
|
|
171
|
-
"jest-pnp-resolver": "^1.2.3",
|
|
172
|
-
"jest-regex-util": "^30.0.1",
|
|
173
|
-
"jest-resolve": "^30.1.3",
|
|
174
|
-
"jest-resolve-dependencies": "^30.1.3",
|
|
175
|
-
"jest-runner": "^30.1.3",
|
|
176
|
-
"jest-runtime": "^30.1.3",
|
|
177
|
-
"jest-snapshot": "^30.1.2",
|
|
178
|
-
"jest-util": "^30.0.5",
|
|
179
|
-
"jest-validate": "^30.1.0",
|
|
180
|
-
"jest-watcher": "^30.1.3",
|
|
181
|
-
"jest-worker": "^30.1.0",
|
|
182
|
-
"js-tokens": "^4.0.0",
|
|
183
|
-
"js-yaml": "^3.14.1",
|
|
184
|
-
"jsesc": "^3.1.0",
|
|
185
|
-
"json-parse-even-better-errors": "^2.3.1",
|
|
186
|
-
"json5": "^2.2.3",
|
|
187
|
-
"leven": "^3.1.0",
|
|
188
|
-
"lines-and-columns": "^1.2.4",
|
|
189
|
-
"locate-path": "^5.0.0",
|
|
190
|
-
"lodash.memoize": "^4.1.2",
|
|
191
|
-
"lru-cache": "^5.1.1",
|
|
192
|
-
"make-dir": "^4.0.0",
|
|
193
|
-
"make-error": "^1.3.6",
|
|
194
|
-
"makeerror": "^1.0.12",
|
|
195
|
-
"merge-stream": "^2.0.0",
|
|
196
|
-
"micromatch": "^4.0.8",
|
|
197
|
-
"mimic-fn": "^2.1.0",
|
|
198
|
-
"minimatch": "^9.0.5",
|
|
199
|
-
"minimist": "^1.2.8",
|
|
200
|
-
"minipass": "^7.1.2",
|
|
201
|
-
"mkdirp": "^1.0.4",
|
|
202
|
-
"ms": "^2.1.3",
|
|
203
|
-
"napi-postinstall": "^0.3.3",
|
|
204
|
-
"natural-compare": "^1.4.0",
|
|
205
|
-
"neo-async": "^2.6.2",
|
|
206
|
-
"node-int64": "^0.4.0",
|
|
207
|
-
"node-releases": "^2.0.21",
|
|
208
|
-
"normalize-path": "^3.0.0",
|
|
209
|
-
"npm-run-path": "^4.0.1",
|
|
210
|
-
"once": "^1.4.0",
|
|
211
|
-
"onetime": "^5.1.2",
|
|
212
|
-
"p-limit": "^3.1.0",
|
|
213
|
-
"p-locate": "^4.1.0",
|
|
214
|
-
"p-try": "^2.2.0",
|
|
215
|
-
"package-json-from-dist": "^1.0.1",
|
|
216
|
-
"parse-json": "^5.2.0",
|
|
217
|
-
"path-exists": "^4.0.0",
|
|
218
|
-
"path-is-absolute": "^1.0.1",
|
|
219
|
-
"path-key": "^3.1.1",
|
|
220
|
-
"path-scurry": "^1.11.1",
|
|
221
|
-
"picocolors": "^1.1.1",
|
|
222
|
-
"picomatch": "^2.3.1",
|
|
223
|
-
"pirates": "^4.0.7",
|
|
224
|
-
"pkg-dir": "^4.2.0",
|
|
225
|
-
"pretty-format": "^30.0.5",
|
|
226
|
-
"pure-rand": "^7.0.1",
|
|
227
|
-
"react-is": "^18.3.1",
|
|
228
|
-
"require-directory": "^2.1.1",
|
|
229
|
-
"resolve-cwd": "^3.0.0",
|
|
230
|
-
"resolve-from": "^5.0.0",
|
|
231
|
-
"semver": "^6.3.1",
|
|
232
|
-
"shebang-command": "^2.0.0",
|
|
233
|
-
"shebang-regex": "^3.0.0",
|
|
234
|
-
"signal-exit": "^4.1.0",
|
|
235
|
-
"slash": "^3.0.0",
|
|
236
|
-
"source-map": "^0.6.1",
|
|
237
|
-
"source-map-support": "^0.5.13",
|
|
238
|
-
"sprintf-js": "^1.0.3",
|
|
239
|
-
"stack-utils": "^2.0.6",
|
|
240
|
-
"string-length": "^4.0.2",
|
|
241
|
-
"string-width": "^5.1.2",
|
|
242
|
-
"string-width-cjs": "^4.2.3",
|
|
243
|
-
"strip-ansi": "^7.1.2",
|
|
244
|
-
"strip-ansi-cjs": "^6.0.1",
|
|
245
|
-
"strip-bom": "^4.0.0",
|
|
246
|
-
"strip-final-newline": "^2.0.0",
|
|
247
|
-
"strip-json-comments": "^3.1.1",
|
|
248
|
-
"supports-color": "^7.2.0",
|
|
249
|
-
"synckit": "^0.11.11",
|
|
250
|
-
"test-exclude": "^6.0.0",
|
|
251
|
-
"tmpl": "^1.0.5",
|
|
252
|
-
"to-regex-range": "^5.0.1",
|
|
253
|
-
"type-detect": "^4.0.8",
|
|
254
|
-
"type-fest": "^0.21.3",
|
|
255
|
-
"uglify-js": "^3.19.3",
|
|
256
|
-
"undici-types": "^7.12.0",
|
|
257
|
-
"unrs-resolver": "^1.11.1",
|
|
258
|
-
"update-browserslist-db": "^1.1.3",
|
|
259
|
-
"v8-to-istanbul": "^9.3.0",
|
|
260
|
-
"walker": "^1.0.8",
|
|
261
|
-
"which": "^2.0.2",
|
|
262
|
-
"wordwrap": "^1.0.0",
|
|
263
|
-
"wrap-ansi": "^8.1.0",
|
|
264
|
-
"wrap-ansi-cjs": "^7.0.0",
|
|
265
|
-
"wrappy": "^1.0.2",
|
|
266
|
-
"write-file-atomic": "^5.0.1",
|
|
267
|
-
"xmlbuilder": "^15.0.0",
|
|
268
|
-
"y18n": "^5.0.8",
|
|
269
|
-
"yallist": "^3.1.1",
|
|
270
|
-
"yargs": "^17.7.2",
|
|
271
|
-
"yargs-parser": "^21.1.1",
|
|
272
|
-
"yocto-queue": "^0.1.0"
|
|
273
|
-
},
|
|
274
76
|
"repository": {
|
|
275
77
|
"type": "git",
|
|
276
|
-
"url": "git+https://github.com/
|
|
78
|
+
"url": "git+https://github.com/schorts99/shared-kernel.git"
|
|
277
79
|
},
|
|
278
80
|
"keywords": [
|
|
279
81
|
"shared-kernel",
|
|
280
82
|
"auth",
|
|
281
83
|
"jsonapi",
|
|
282
84
|
"kernel",
|
|
283
|
-
"value-objects"
|
|
85
|
+
"value-objects",
|
|
86
|
+
"criteria",
|
|
87
|
+
"state manager",
|
|
88
|
+
"models",
|
|
89
|
+
"entities",
|
|
90
|
+
"http",
|
|
91
|
+
"domain-events"
|
|
284
92
|
],
|
|
285
93
|
"bugs": {
|
|
286
|
-
"url": "https://github.com/
|
|
94
|
+
"url": "https://github.com/schorts99/shared-kernel/issues"
|
|
287
95
|
},
|
|
288
|
-
"homepage": "https://github.com/
|
|
96
|
+
"homepage": "https://github.com/schorts99/shared-kernel#readme"
|
|
289
97
|
}
|