@willbooster/shared-lib 7.2.3 → 7.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"sleep.cjs","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((r) => setTimeout(r, milliseconds));\n}\n"],"names":["async","milliseconds","Promise","r","setTimeout"],"mappings":"2BAAOA,eAAqBC,GAC1B,OAAO,IAAIC,QAASC,GAAMC,WAAWD,EAAGF,GAC1C"}
1
+ {"version":3,"file":"sleep.cjs","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"],"names":["async","milliseconds","Promise","resolve","setTimeout"],"mappings":"2BAAOA,eAAqBC,GAC1B,OAAO,IAAIC,QAASC,GAAYC,WAAWD,EAASF,GACtD"}
package/dist/sleep.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sleep.js","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((r) => setTimeout(r, milliseconds));\n}\n"],"names":["async","sleep","milliseconds","Promise","r","setTimeout"],"mappings":"AAAOA,eAAeC,EAAMC,GAC1B,OAAO,IAAIC,QAASC,GAAMC,WAAWD,EAAGF,GAC1C"}
1
+ {"version":3,"file":"sleep.js","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"],"names":["async","sleep","milliseconds","Promise","resolve","setTimeout"],"mappings":"AAAOA,eAAeC,EAAMC,GAC1B,OAAO,IAAIC,QAASC,GAAYC,WAAWD,EAASF,GACtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"zenkaku.cjs","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xfe_e0);\n });\n}\n"],"names":["str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"qDAAO,SAAyCA,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
1
+ {"version":3,"file":"zenkaku.cjs","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xFE_E0);\n });\n}\n"],"names":["str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"qDAAO,SAAyCA,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"zenkaku.js","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xfe_e0);\n });\n}\n"],"names":["zenkakuAlphanumericalsToHankaku","str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"AAAO,SAASA,EAAgCC,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
1
+ {"version":3,"file":"zenkaku.js","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xFE_E0);\n });\n}\n"],"names":["zenkakuAlphanumericalsToHankaku","str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"AAAO,SAASA,EAAgCC,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib",
3
- "version": "7.2.3",
3
+ "version": "7.3.0",
4
4
  "description": "Shared library for WillBooster projects",
5
+ "license": "Apache-2.0",
6
+ "author": "WillBooster Inc.",
5
7
  "repository": {
6
8
  "type": "git",
7
9
  "url": "git+https://github.com/WillBooster/shared.git",
8
10
  "directory": "packages/shared-lib"
9
11
  },
10
- "license": "Apache-2.0",
11
- "author": "WillBooster Inc.",
12
- "sideEffects": false,
12
+ "files": [
13
+ "bin/",
14
+ "dist/"
15
+ ],
13
16
  "type": "module",
17
+ "sideEffects": false,
18
+ "main": "dist/index.cjs",
19
+ "module": "dist/index.js",
20
+ "types": "dist/index.d.ts",
14
21
  "exports": {
15
22
  ".": {
16
23
  "types": "./dist/index.d.ts",
@@ -23,57 +30,40 @@
23
30
  "import": "./src/index.ts"
24
31
  }
25
32
  },
26
- "main": "dist/index.cjs",
27
- "module": "dist/index.js",
28
- "types": "dist/index.d.ts",
29
- "files": [
30
- "bin/",
31
- "dist/"
32
- ],
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
33
36
  "scripts": {
34
37
  "build": "build-ts lib",
35
38
  "check-all-for-ai": "yarn check-for-ai && yarn test",
36
- "check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn typecheck && yarn lint-fix --quiet",
39
+ "check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn lint-fix --quiet",
37
40
  "cleanup": "yarn format && yarn lint-fix",
38
- "format": "sort-package-json && yarn prettify",
39
- "lint": "eslint --color",
41
+ "format": "sort-package-json && yarn format-code && yarn prettify",
42
+ "format-code": "oxfmt --write --no-error-on-unmatched-pattern .",
43
+ "lint": "oxlint --no-error-on-unmatched-pattern .",
40
44
  "lint-fix": "yarn lint --fix",
41
- "prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,java,js,json,json5,jsonc,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test{-,/}fixtures/**\" || true",
45
+ "prettify": "prettier --cache --color --no-error-on-unmatched-pattern --write \"**/{.*/,}*.{java}\" \"!**/test{-,/}fixtures/**\" || true",
42
46
  "test": "vitest",
43
47
  "typecheck": "tsc --noEmit",
44
48
  "verify-code": "yarn workspace @willbooster/wb start --working-dir \"$INIT_CWD\" verify-code",
45
49
  "verify-code-with-tests": "yarn verify-code && yarn test"
46
50
  },
47
- "prettier": "@willbooster/prettier-config",
48
51
  "devDependencies": {
49
- "@eslint/js": "^10.0.1",
50
52
  "@tsconfig/node-lts": "24.0.0",
51
53
  "@tsconfig/node-ts": "23.6.4",
52
- "@types/eslint": "9.6.1",
53
- "@types/micromatch": "4.0.10",
54
54
  "@types/node": "25.5.2",
55
- "@willbooster/eslint-config-ts": "12.0.0",
55
+ "@willbooster/oxfmt-config": "1.2.0",
56
+ "@willbooster/oxlint-config": "1.4.0",
56
57
  "@willbooster/prettier-config": "10.4.0",
57
58
  "build-ts": "17.0.22",
58
- "eslint": "^10.2.0",
59
- "eslint-config-flat-gitignore": "2.3.0",
60
- "eslint-config-prettier": "10.1.8",
61
- "eslint-import-resolver-typescript": "4.4.4",
62
- "eslint-plugin-import-x": "4.16.2",
63
- "eslint-plugin-sort-class-members": "1.22.1",
64
- "eslint-plugin-sort-destructure-keys": "3.0.0",
65
- "eslint-plugin-unicorn": "64.0.0",
66
- "eslint-plugin-unused-imports": "4.4.1",
67
- "globals": "17.4.0",
68
- "micromatch": "4.0.8",
59
+ "oxfmt": "0.45.0",
60
+ "oxlint": "^1.60.0",
61
+ "oxlint-tsgolint": "0.21.0",
69
62
  "prettier": "3.8.1",
70
63
  "prettier-plugin-java": "2.8.1",
71
64
  "sort-package-json": "3.6.1",
72
65
  "typescript": "^5.9.3",
73
- "typescript-eslint": "8.58.0",
74
66
  "vitest": "4.0.18"
75
67
  },
76
- "publishConfig": {
77
- "access": "public"
78
- }
68
+ "prettier": "@willbooster/prettier-config"
79
69
  }