@cyberskill/shared 1.79.0 → 1.81.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 (104) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +30 -8
  2. package/dist/_tsup-dts-rollup.d.ts +30 -8
  3. package/dist/configs/commitlint/index.d.cts +1 -1
  4. package/dist/configs/commitlint/index.d.ts +1 -1
  5. package/dist/configs/config.util.cjs +1 -1
  6. package/dist/configs/config.util.js +1 -1
  7. package/dist/configs/eslint/index.d.cts +1 -1
  8. package/dist/configs/eslint/index.d.ts +1 -1
  9. package/dist/configs/index.cjs +1 -1
  10. package/dist/configs/index.js +1 -1
  11. package/dist/configs/lint-staged/index.d.cts +1 -1
  12. package/dist/configs/lint-staged/index.d.ts +1 -1
  13. package/dist/configs/tsconfig/tsconfig.base.d.cts +1 -0
  14. package/dist/configs/tsconfig/tsconfig.base.d.ts +1 -0
  15. package/dist/configs/tsconfig/tsconfig.base.json +38 -0
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.cts +1 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +1 -1
  20. package/dist/nodejs/cli/cli.util.cjs +1 -1
  21. package/dist/nodejs/cli/cli.util.js +1 -1
  22. package/dist/nodejs/cli/index.cjs +1 -1
  23. package/dist/nodejs/cli/index.js +1 -1
  24. package/dist/nodejs/command/command.util.cjs +1 -1
  25. package/dist/nodejs/command/command.util.js +1 -1
  26. package/dist/nodejs/command/index.cjs +1 -1
  27. package/dist/nodejs/command/index.js +1 -1
  28. package/dist/nodejs/index.cjs +1 -1
  29. package/dist/nodejs/index.js +1 -1
  30. package/dist/nodejs/mongo/index.cjs +1 -1
  31. package/dist/nodejs/mongo/index.js +1 -1
  32. package/dist/nodejs/mongo/mongo.cjs +1 -1
  33. package/dist/nodejs/mongo/mongo.js +1 -1
  34. package/dist/nodejs/package/index.cjs +1 -1
  35. package/dist/nodejs/package/index.js +1 -1
  36. package/dist/nodejs/package/package.util.cjs +1 -1
  37. package/dist/nodejs/package/package.util.js +1 -1
  38. package/dist/nodejs/path/index.cjs +1 -1
  39. package/dist/nodejs/path/index.js +1 -1
  40. package/dist/nodejs/path/path.constant.cjs +1 -1
  41. package/dist/nodejs/path/path.constant.js +1 -1
  42. package/dist/nodejs/path/path.util.cjs +1 -1
  43. package/dist/nodejs/path/path.util.js +1 -1
  44. package/dist/nodejs/storage/index.cjs +1 -1
  45. package/dist/nodejs/storage/index.js +1 -1
  46. package/dist/nodejs/storage/storage.util.cjs +1 -1
  47. package/dist/nodejs/storage/storage.util.js +1 -1
  48. package/dist/package-S4RGUCC2.json +266 -0
  49. package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
  50. package/dist/react/apollo-client/apollo-client.component.d.cts +1 -1
  51. package/dist/react/apollo-client/apollo-client.component.d.ts +1 -1
  52. package/dist/react/apollo-client/apollo-client.component.js +1 -1
  53. package/dist/react/apollo-client/index.cjs +1 -1
  54. package/dist/react/apollo-client/index.d.cts +1 -1
  55. package/dist/react/apollo-client/index.d.ts +1 -1
  56. package/dist/react/apollo-client/index.js +1 -1
  57. package/dist/react/apollo-error/apollo-error.component.d.cts +1 -1
  58. package/dist/react/apollo-error/apollo-error.component.d.ts +1 -1
  59. package/dist/react/apollo-error/apollo-error.context.d.cts +1 -1
  60. package/dist/react/apollo-error/apollo-error.context.d.ts +1 -1
  61. package/dist/react/apollo-error/apollo-error.hook.d.cts +1 -1
  62. package/dist/react/apollo-error/apollo-error.hook.d.ts +1 -1
  63. package/dist/react/apollo-error/apollo-error.provider.d.cts +2 -2
  64. package/dist/react/apollo-error/apollo-error.provider.d.ts +2 -2
  65. package/dist/react/apollo-error/index.d.cts +5 -5
  66. package/dist/react/apollo-error/index.d.ts +5 -5
  67. package/dist/react/index.cjs +1 -1
  68. package/dist/react/index.d.cts +1 -0
  69. package/dist/react/index.d.ts +1 -0
  70. package/dist/react/index.js +1 -1
  71. package/dist/react/loading/loading.module.scss.d.cjs +1 -0
  72. package/dist/react/loading/loading.module.scss.d.d.cts +1 -0
  73. package/dist/react/loading/loading.module.scss.d.d.ts +1 -0
  74. package/dist/react/loading/loading.module.scss.d.js +1 -0
  75. package/dist/react/next-intl/index.cjs +1 -1
  76. package/dist/react/next-intl/index.d.cts +1 -0
  77. package/dist/react/next-intl/index.d.ts +1 -0
  78. package/dist/react/next-intl/index.js +1 -1
  79. package/dist/react/next-intl/next-intl.constant.cjs +1 -0
  80. package/dist/react/next-intl/next-intl.constant.d.cts +1 -0
  81. package/dist/react/next-intl/next-intl.constant.d.ts +1 -0
  82. package/dist/react/next-intl/next-intl.constant.js +1 -0
  83. package/dist/react/next-intl/next-intl.hoc.cjs +1 -1
  84. package/dist/react/next-intl/next-intl.hoc.js +1 -1
  85. package/dist/react/next-intl/next-intl.provider.cjs +1 -1
  86. package/dist/react/next-intl/next-intl.provider.js +1 -1
  87. package/dist/react/storage/index.cjs +1 -1
  88. package/dist/react/storage/index.js +1 -1
  89. package/dist/react/storage/storage.hook.cjs +1 -1
  90. package/dist/react/storage/storage.hook.js +1 -1
  91. package/dist/react/storage/storage.util.cjs +1 -1
  92. package/dist/react/storage/storage.util.js +1 -1
  93. package/dist/react/vitest/index.cjs +1 -1
  94. package/dist/react/vitest/index.js +1 -1
  95. package/dist/react/vitest/vitest.unit.cjs +1 -1
  96. package/dist/react/vitest/vitest.unit.js +1 -1
  97. package/dist/utils/index.cjs +1 -1
  98. package/dist/utils/index.js +1 -1
  99. package/dist/utils/string/index.cjs +1 -1
  100. package/dist/utils/string/index.js +1 -1
  101. package/dist/utils/string/string.util.cjs +1 -1
  102. package/dist/utils/string/string.util.js +1 -1
  103. package/package.json +8 -17
  104. package/public/wiki/convention.md +11 -11
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyberskill/shared",
3
3
  "type": "module",
4
- "version": "1.79.0",
4
+ "version": "1.81.0",
5
5
  "description": "CyberSkill Shared",
6
6
  "author": "Stephen Cheng",
7
7
  "license": "MIT",
@@ -44,16 +44,7 @@
44
44
  "import": "./dist/configs/lint-staged/index.js",
45
45
  "require": "./dist/configs/lint-staged/index.cjs"
46
46
  },
47
- "./configs/vitest/react/e2e": {
48
- "types": "./dist/configs/vitest/react/e2e.d.ts",
49
- "import": "./dist/configs/vitest/react/e2e.js",
50
- "require": "./dist/configs/vitest/react/e2e.cjs"
51
- },
52
- "./configs/vitest/react/unit": {
53
- "types": "./dist/configs/vitest/react/unit.d.ts",
54
- "import": "./dist/configs/vitest/react/unit.js",
55
- "require": "./dist/configs/vitest/react/unit.cjs"
56
- },
47
+ "./configs/tsconfig": "./dist/configs/tsconfig/tsconfig.base.json",
57
48
  "./constants": {
58
49
  "types": "./dist/constants/index.d.ts",
59
50
  "import": "./dist/constants/index.js",
@@ -197,15 +188,15 @@
197
188
  "@antfu/eslint-config": "4.12.0",
198
189
  "@apollo/client": "3.13.7",
199
190
  "@eddeee888/gcg-typescript-resolver-files": "0.12.0",
200
- "@eslint-react/eslint-plugin": "1.45.1",
191
+ "@eslint-react/eslint-plugin": "1.47.4",
201
192
  "@graphql-codegen/cli": "5.0.5",
202
193
  "@graphql-codegen/client-preset": "4.8.0",
203
194
  "@microsoft/api-extractor": "7.52.3",
204
195
  "@next/eslint-plugin-next": "15.3.0",
205
- "@swc/core": "1.11.20",
196
+ "@swc/core": "1.11.21",
206
197
  "@testing-library/jest-dom": "6.6.3",
207
198
  "@testing-library/react": "16.3.0",
208
- "@vitejs/plugin-react-swc": "3.8.1",
199
+ "@vitejs/plugin-react-swc": "3.9.0",
209
200
  "@vitest/browser": "3.1.1",
210
201
  "chalk": "5.4.1",
211
202
  "classnames": "2.5.1",
@@ -220,8 +211,8 @@
220
211
  "globals": "16.0.0",
221
212
  "graphql": "16.10.0",
222
213
  "graphql-ws": "6.0.4",
223
- "i18next": "24.2.3",
224
- "jsdom": "26.0.0",
214
+ "i18next": "25.0.0",
215
+ "jsdom": "26.1.0",
225
216
  "localforage": "1.10.0",
226
217
  "modern-normalize": "3.0.1",
227
218
  "mongodb": "6.15.0",
@@ -262,7 +253,7 @@
262
253
  "@types/crypto-js": "4.2.2",
263
254
  "@types/mongoose-aggregate-paginate-v2": "1.0.12",
264
255
  "@types/node-persist": "3.1.8",
265
- "@types/react": "19.1.1",
256
+ "@types/react": "19.1.2",
266
257
  "@types/react-dom": "19.1.2",
267
258
  "@types/unorm": "1.3.31",
268
259
  "@types/uuid": "10.0.0",
@@ -113,12 +113,12 @@ pnpm run dev
113
113
 
114
114
  ### Quy Ước Đặt Tên Type Trong GraphQL
115
115
 
116
- | Loại | Tiền Tố | Ví Dụ |
117
- | ------------- | ------- | --------------------- |
118
- | **Type** | `T_` | `type T_User` |
119
- | **Input** | `Input_`| `input Input_CreateUser`|
120
- | **Interface** | `I_` | `input I_User` |
121
- | **Union** | `U_` | `input U_SearchResult` |
116
+ | Loại | Tiền Tố | Ví Dụ |
117
+ | ------------- | -------- | ------------------------ |
118
+ | **Type** | `T_` | `type T_User` |
119
+ | **Input** | `Input_` | `input Input_CreateUser` |
120
+ | **Interface** | `I_` | `input I_User` |
121
+ | **Union** | `U_` | `input U_SearchResult` |
122
122
 
123
123
  ### Quy Ước Đặt Tên Biến Môi Trường
124
124
 
@@ -155,11 +155,11 @@ import { formatDate } from '#shared/utils'; // Module nội bộ
155
155
 
156
156
  ### Quy Ước Đặt Commit Message
157
157
 
158
- | Loại Commit | Cú Pháp | Ví Dụ |
159
- | ----------------- | ----------------------- | ------------------------------------------ |
160
- | **Tính năng mới** | `feat(module): message` | `feat(user): add user login form` |
161
- | **Sửa lỗi** | `fix(module): message` | `fix(auth): incorrect password validation` |
162
- | **Dọn dẹp** | `chore(module): message`| `chore(product): refactor product filter` |
158
+ | Loại Commit | Cú Pháp | Ví Dụ |
159
+ | ----------------- | ------------------------ | ------------------------------------------ |
160
+ | **Tính năng mới** | `feat(module): message` | `feat(user): add user login form` |
161
+ | **Sửa lỗi** | `fix(module): message` | `fix(auth): incorrect password validation` |
162
+ | **Dọn dẹp** | `chore(module): message` | `chore(product): refactor product filter` |
163
163
 
164
164
  ## Quy Trình Làm Việc Với Git
165
165