@cyberskill/shared 2.20.0 → 2.21.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.
Files changed (43) hide show
  1. package/dist/config/storybook/storybook.main.cjs +1 -1
  2. package/dist/config/storybook/storybook.main.js +1 -1
  3. package/dist/config/vitest/vitest.e2e.cjs +1 -1
  4. package/dist/config/vitest/vitest.e2e.js +6 -6
  5. package/dist/config/vitest/vitest.unit.cjs +1 -1
  6. package/dist/config/vitest/vitest.unit.js +5 -5
  7. package/dist/node/mongo/mongo-controller.test.unit.d.ts +1 -0
  8. package/dist/node/mongo/mongo.test.unit.d.ts +1 -0
  9. package/dist/node/mongo/mongo.util.cjs +2 -2
  10. package/dist/node/mongo/mongo.util.d.ts +9 -203
  11. package/dist/node/mongo/mongo.util.js +70 -68
  12. package/dist/node/path/path.constant.cjs +1 -1
  13. package/dist/node/path/path.constant.js +113 -109
  14. package/dist/node/path/path.test.unit.d.ts +1 -0
  15. package/dist/node/path/path.util.d.ts +2 -2
  16. package/dist/react/loading/loading.component.cjs +2 -2
  17. package/dist/react/loading/loading.component.js +32 -19
  18. package/dist/react/loading/loading.test.unit.d.ts +1 -0
  19. package/dist/react/loading/loading.type.d.ts +2 -1
  20. package/dist/util/common/common.test.unit.d.ts +1 -0
  21. package/dist/util/common/common.util.cjs +1 -1
  22. package/dist/util/common/common.util.js +14 -15
  23. package/dist/util/index.cjs +1 -1
  24. package/dist/util/index.js +16 -15
  25. package/dist/util/object/index.cjs +1 -1
  26. package/dist/util/object/index.js +4 -3
  27. package/dist/util/object/object.test.unit.d.ts +1 -0
  28. package/dist/util/object/object.util.cjs +1 -1
  29. package/dist/util/object/object.util.d.ts +10 -30
  30. package/dist/util/object/object.util.js +102 -69
  31. package/dist/util/serializer/serializer.test.unit.d.ts +1 -0
  32. package/dist/util/serializer/serializer.util.cjs +1 -1
  33. package/dist/util/serializer/serializer.util.js +19 -16
  34. package/dist/util/string/string.test.unit.d.ts +1 -0
  35. package/dist/util/string/string.util.cjs +1 -1
  36. package/dist/util/string/string.util.d.ts +4 -3
  37. package/dist/util/string/string.util.js +32 -41
  38. package/dist/util/validate/validate.test.unit.d.ts +1 -0
  39. package/dist/util/validate/validate.util.cjs +1 -1
  40. package/dist/util/validate/validate.util.js +9 -9
  41. package/package.json +37 -45
  42. /package/dist/node_modules/.pnpm/{vitest@4.0.13_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.2_tsx@4.20.6_yaml@2.8.1 → vitest@4.0.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.3.0_sass@1.97.0_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.cjs +0 -0
  43. /package/dist/node_modules/.pnpm/{vitest@4.0.13_@types_debug@4.1.12_@types_node@24.10.1_jiti@2.6.1_jsdom@27.2.0_sass@1.94.2_tsx@4.20.6_yaml@2.8.1 → vitest@4.0.16_@types_node@25.0.3_jiti@2.6.1_jsdom@27.3.0_sass@1.97.0_tsx@4.21.0_yaml@2.8.2}/node_modules/vitest/dist/config.js +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyberskill/shared",
3
3
  "type": "module",
4
- "version": "2.20.0",
4
+ "version": "2.21.0",
5
5
  "description": "CyberSkill Shared",
6
6
  "author": "Stephen Cheng",
7
7
  "license": "MIT",
@@ -212,108 +212,100 @@
212
212
  "test:unit": "tsx src/node/cli/index.ts test:unit"
213
213
  },
214
214
  "dependencies": {
215
- "@antfu/eslint-config": "6.2.0",
216
- "@apollo/client": "4.0.9",
217
- "@apollo/client-integration-nextjs": "0.14.1",
215
+ "@antfu/eslint-config": "6.7.1",
216
+ "@apollo/client": "4.0.11",
217
+ "@apollo/client-integration-nextjs": "0.14.3",
218
218
  "@apollo/server": "5.2.0",
219
219
  "@as-integrations/express5": "1.1.2",
220
- "@dotenvx/dotenvx": "1.51.1",
220
+ "@dotenvx/dotenvx": "1.51.2",
221
221
  "@eddeee888/gcg-typescript-resolver-files": "0.14.1",
222
- "@eslint-react/eslint-plugin": "2.3.7",
222
+ "@eslint-react/eslint-plugin": "2.3.13",
223
223
  "@graphql-codegen/cli": "6.1.0",
224
- "@graphql-codegen/client-preset": "5.2.0",
224
+ "@graphql-codegen/client-preset": "5.2.2",
225
225
  "@nestjs/common": "11.1.9",
226
226
  "@nestjs/core": "11.1.9",
227
227
  "@userback/widget": "0.3.12",
228
228
  "@vitejs/plugin-react-swc": "4.2.2",
229
- "body-parser": "2.2.0",
229
+ "body-parser": "2.2.1",
230
230
  "chalk": "5.6.2",
231
231
  "clsx": "2.1.1",
232
232
  "compression": "1.8.1",
233
233
  "consola": "3.4.2",
234
234
  "cookie-parser": "1.4.7",
235
235
  "cors": "2.8.5",
236
- "crypto-js": "4.2.0",
237
236
  "date-fns": "4.1.0",
238
237
  "envalid": "8.1.1",
239
- "eslint-plugin-format": "1.0.2",
238
+ "eslint-plugin-format": "1.1.0",
240
239
  "eslint-plugin-react-hooks": "7.0.1",
241
- "eslint-plugin-react-refresh": "0.4.24",
242
- "express": "5.1.0",
240
+ "eslint-plugin-react-refresh": "0.4.26",
241
+ "express": "5.2.1",
243
242
  "express-session": "1.18.2",
244
243
  "express-useragent": "2.0.2",
245
244
  "extract-files": "13.0.0",
246
- "fs-extra": "11.3.2",
245
+ "fs-extra": "11.3.3",
247
246
  "globals": "16.5.0",
248
247
  "graphql": "16.12.0",
249
248
  "graphql-upload": "17.0.0",
250
249
  "graphql-ws": "6.0.6",
251
- "i18next": "25.6.3",
252
- "jsdom": "27.2.0",
250
+ "i18next": "25.7.3",
251
+ "jsdom": "27.3.0",
253
252
  "localforage": "1.10.0",
254
- "lodash-es": "4.17.21",
255
- "migrate-mongo": "12.1.3",
253
+ "migrate-mongo": "14.0.7",
256
254
  "mongodb": "7.0.0",
257
- "mongoose": "9.0.0",
255
+ "mongoose": "9.0.2",
258
256
  "mongoose-aggregate-paginate-v2": "1.1.4",
259
257
  "mongoose-paginate-v2": "1.9.1",
260
- "next-intl": "4.5.5",
258
+ "next-intl": "4.6.1",
261
259
  "node-fetch": "3.3.2",
262
260
  "qs": "6.14.0",
263
- "react": "19.2.0",
264
- "react-dom": "19.2.0",
261
+ "react": "19.2.3",
262
+ "react-dom": "19.2.3",
265
263
  "react-hot-toast": "2.6.0",
266
- "react-i18next": "16.3.5",
264
+ "react-i18next": "16.5.0",
267
265
  "rxjs": "7.8.2",
268
- "slugify": "1.6.6",
269
- "unorm": "1.6.0",
270
- "uuid": "13.0.0",
271
- "vite": "7.2.4",
266
+ "vite": "7.3.0",
272
267
  "ws": "8.18.3",
273
268
  "yargs": "18.0.0"
274
269
  },
275
270
  "devDependencies": {
276
- "@commitlint/cli": "20.1.0",
277
- "@commitlint/config-conventional": "20.0.0",
271
+ "@commitlint/cli": "20.2.0",
272
+ "@commitlint/config-conventional": "20.2.0",
278
273
  "@eslint/config-inspector": "1.4.2",
279
- "@next/eslint-plugin-next": "16.0.3",
280
- "@storybook/react": "10.0.8",
281
- "@storybook/react-vite": "10.0.8",
274
+ "@next/eslint-plugin-next": "16.1.0",
275
+ "@storybook/react": "10.1.10",
276
+ "@storybook/react-vite": "10.1.10",
282
277
  "@testing-library/jest-dom": "6.9.1",
283
- "@testing-library/react": "16.3.0",
278
+ "@testing-library/react": "16.3.1",
284
279
  "@types/body-parser": "1.19.6",
285
280
  "@types/compression": "1.8.1",
286
281
  "@types/cookie-parser": "1.4.10",
287
282
  "@types/cors": "2.8.19",
288
- "@types/crypto-js": "4.2.2",
289
- "@types/express": "5.0.5",
283
+ "@types/express": "5.0.6",
290
284
  "@types/express-session": "1.18.2",
291
285
  "@types/express-useragent": "1.0.5",
292
286
  "@types/extract-files": "13.0.2",
293
287
  "@types/fs-extra": "11.0.4",
294
288
  "@types/graphql-upload": "17.0.0",
295
- "@types/lodash-es": "4.17.12",
296
289
  "@types/migrate-mongo": "10.0.6",
297
- "@types/node": "24.10.1",
298
- "@types/react": "19.2.6",
290
+ "@types/node": "25.0.3",
291
+ "@types/react": "19.2.7",
299
292
  "@types/react-dom": "19.2.3",
300
- "@types/unorm": "1.3.31",
301
293
  "@types/ws": "8.18.1",
302
294
  "@types/yargs": "17.0.35",
303
- "@vitest/browser": "4.0.13",
304
- "eslint": "9.39.1",
305
- "eslint-config-next": "16.0.3",
295
+ "@vitest/browser": "4.0.16",
296
+ "eslint": "9.39.2",
297
+ "eslint-config-next": "16.1.0",
306
298
  "glob": "13.0.0",
307
299
  "lint-staged": "16.2.7",
308
300
  "node-modules-inspector": "1.2.0",
309
301
  "npm-run-all2": "8.0.4",
310
- "sass": "1.94.2",
302
+ "sass": "1.97.0",
311
303
  "simple-git-hooks": "2.13.1",
312
- "tsx": "4.20.6",
304
+ "tsx": "4.21.0",
313
305
  "typescript": "5.9.3",
314
- "vite": "7.2.4",
306
+ "vite": "7.3.0",
315
307
  "vite-plugin-dts": "4.5.4",
316
- "vitest": "4.0.13"
308
+ "vitest": "4.0.16"
317
309
  },
318
310
  "publishConfig": {
319
311
  "access": "public",