@xylabs/sdk-js 4.3.4 → 4.3.6

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/eslint.config.mjs CHANGED
@@ -1,15 +1,13 @@
1
- // eslint.config.mjs
2
-
3
- import { typescriptConfig,
1
+ import {
2
+ typescriptConfig,
4
3
  unicornConfig,
5
4
  workspacesConfig,
6
5
  rulesConfig,
7
- importConfig } from '@xylabs/eslint-config-flat'
6
+ importConfig,
7
+ } from '@xylabs/eslint-config-flat'
8
8
 
9
9
  export default [
10
- {
11
- ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs'],
12
- },
10
+ { ignores: ['.yarn', 'packages/*/dist/**', 'dist', 'build', '**/build/**', 'node_modules/**', 'public', 'storybook-static'] },
13
11
  unicornConfig,
14
12
  workspacesConfig,
15
13
  rulesConfig,
@@ -18,7 +16,7 @@ export default [
18
16
  ...typescriptConfig,
19
17
  rules: {
20
18
  ...typescriptConfig.rules,
21
- '@typescript-eslint/consistent-type-imports': ['warn']
19
+ '@typescript-eslint/consistent-type-imports': ['warn'],
22
20
  },
23
21
  },
24
22
  {
package/knip.config.ts ADDED
@@ -0,0 +1,46 @@
1
+ import type { KnipConfig } from 'knip'
2
+
3
+ const config: KnipConfig = {
4
+ ignoreDependencies: ['@xylabs/ts-scripts-yarn3'],
5
+ ignore: ['xy.config.ts'],
6
+ entry: ['src/index.ts'],
7
+ workspaces: {
8
+ '.': {
9
+ entry: ['src/index.ts'],
10
+ ignore: ['xy.config.ts'],
11
+ },
12
+ 'packages/buffer': {
13
+ ignoreDependencies: ['buffer'],
14
+ ignore: ['xy.config.ts'],
15
+ entry: ['src/index.ts', 'src/node/index.ts', 'src/browser/index.ts'],
16
+ },
17
+ 'packages/*': {
18
+ entry: ['src/index.ts', 'src/node/index.ts', 'src/browser/index.ts', 'src/neutral/index.ts'],
19
+ ignore: ['xy.config.ts'],
20
+ },
21
+ 'packages/threads': {
22
+ entry: [
23
+ 'src/index.ts',
24
+ 'src/master/implementation.browser.ts',
25
+ 'src/master/implementation.node.ts',
26
+ 'index.mjs',
27
+ 'observable.{mjs,js}',
28
+ 'register.{mjs,js}',
29
+ 'worker.{mjs,js}',
30
+ 'src/master/register.ts',
31
+ 'src/worker/bundle-entry.ts',
32
+ 'test-tooling/**/*.{ts,js}',
33
+ 'test/**/*.{ts,js}',
34
+ ],
35
+ ignore: ['xy.config.ts'],
36
+ },
37
+ },
38
+ typescript: {
39
+ config: [
40
+ 'tsconfig.json',
41
+ 'packages/**/*/tsconfig.json',
42
+ ],
43
+ },
44
+ }
45
+
46
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/sdk-js",
3
- "version": "4.3.4",
3
+ "version": "4.3.6",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -40,57 +40,54 @@
40
40
  "scripts": {
41
41
  "build-typedoc-site": "xy gen-docs @xylabs/sdk-js"
42
42
  },
43
+ "resolutions": {
44
+ "eslint": "9.14.0"
45
+ },
43
46
  "dependencies": {
44
- "@xylabs/api": "^4.3.4",
45
- "@xylabs/array": "^4.3.4",
46
- "@xylabs/assert": "^4.3.4",
47
- "@xylabs/axios": "^4.3.4",
48
- "@xylabs/crypto": "^4.3.4",
49
- "@xylabs/decimal-precision": "^4.3.4",
50
- "@xylabs/delay": "^4.3.4",
51
- "@xylabs/error": "^4.3.4",
52
- "@xylabs/eth-address": "^4.3.4",
53
- "@xylabs/exists": "^4.3.4",
54
- "@xylabs/forget": "^4.3.4",
55
- "@xylabs/function-name": "^4.3.4",
56
- "@xylabs/hex": "^4.3.4",
57
- "@xylabs/log": "^4.3.4",
58
- "@xylabs/logger": "^4.3.4",
59
- "@xylabs/object": "^4.3.4",
60
- "@xylabs/platform": "^4.3.4",
61
- "@xylabs/profile": "^4.3.4",
62
- "@xylabs/promise": "^4.3.4",
63
- "@xylabs/retry": "^4.3.4",
64
- "@xylabs/set": "^4.3.4",
65
- "@xylabs/static-implements": "^4.3.4",
66
- "@xylabs/timer": "^4.3.4",
67
- "@xylabs/url": "^4.3.4"
47
+ "@xylabs/api": "^4.3.6",
48
+ "@xylabs/array": "^4.3.6",
49
+ "@xylabs/assert": "^4.3.6",
50
+ "@xylabs/axios": "^4.3.6",
51
+ "@xylabs/crypto": "^4.3.6",
52
+ "@xylabs/decimal-precision": "^4.3.6",
53
+ "@xylabs/delay": "^4.3.6",
54
+ "@xylabs/error": "^4.3.6",
55
+ "@xylabs/eth-address": "^4.3.6",
56
+ "@xylabs/exists": "^4.3.6",
57
+ "@xylabs/forget": "^4.3.6",
58
+ "@xylabs/function-name": "^4.3.6",
59
+ "@xylabs/hex": "^4.3.6",
60
+ "@xylabs/log": "^4.3.6",
61
+ "@xylabs/logger": "^4.3.6",
62
+ "@xylabs/object": "^4.3.6",
63
+ "@xylabs/platform": "^4.3.6",
64
+ "@xylabs/profile": "^4.3.6",
65
+ "@xylabs/promise": "^4.3.6",
66
+ "@xylabs/retry": "^4.3.6",
67
+ "@xylabs/set": "^4.3.6",
68
+ "@xylabs/static-implements": "^4.3.6",
69
+ "@xylabs/timer": "^4.3.6",
70
+ "@xylabs/url": "^4.3.6"
68
71
  },
69
72
  "devDependencies": {
70
- "@stylistic/eslint-plugin": "^2.10.0",
71
- "@types/supertest": "^6.0.2",
72
- "@typescript-eslint/eslint-plugin": "^8.12.2",
73
- "@typescript-eslint/parser": "^8.12.2",
74
- "@vitejs/plugin-react-swc": "^3.7.1",
75
- "@xylabs/config": "^4.2.3",
76
- "@xylabs/eslint-config-flat": "^4.2.3",
77
- "@xylabs/ts-scripts-yarn3": "^4.2.3",
78
- "@xylabs/tsconfig": "^4.2.3",
79
- "@xylabs/tsconfig-jest": "^4.1.0",
80
- "@xylabs/vitest-extended": "^4.3.4",
73
+ "@types/node": "^22.9.0",
74
+ "@typescript-eslint/eslint-plugin": "^8.14.0",
75
+ "@typescript-eslint/parser": "^8.14.0",
76
+ "@xylabs/config": "^4.2.4",
77
+ "@xylabs/eslint-config-flat": "^4.2.4",
78
+ "@xylabs/ts-scripts-yarn3": "^4.2.4",
79
+ "@xylabs/tsconfig": "^4.2.4",
81
80
  "dotenv": "^16.4.5",
82
- "eslint": "^9.13.0",
81
+ "eslint": "^9.15.0",
83
82
  "eslint-import-resolver-typescript": "^3.6.3",
84
- "eslint-plugin-import": "^2.31.0",
85
- "knip": "^5.34.4",
83
+ "knip": "^5.37.0",
86
84
  "reflect-metadata": "^0.2.2",
87
- "supertest": "^7.0.0",
88
85
  "ts-node": "^10.9.2",
89
- "tslib": "^2.8.0",
90
- "typedoc": "^0.26.10",
86
+ "tslib": "^2.8.1",
87
+ "typedoc": "^0.26.11",
91
88
  "typescript": "^5.6.3",
92
- "vite": "^5.4.10",
93
- "vitest": "^2.1.4"
89
+ "vite": "^5.4.11",
90
+ "vitest": "^2.1.5"
94
91
  },
95
92
  "packageManager": "yarn@4.5.1",
96
93
  "engines": {
package/babel.config.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "presets": [
3
- ["@babel/preset-env", { "modules": false, "targets": { "node": "current" } }],
4
- "@babel/preset-typescript"
5
- ]
6
- }
package/jest.config.ts DELETED
@@ -1,31 +0,0 @@
1
- const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
2
- const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules
3
- return {
4
- coveragePathIgnorePatterns: ['<rootDir>/(.*)/dist'],
5
- extensionsToTreatAsEsm: ['.ts'],
6
- globalSetup: './jestSetup/globalSetup.ts',
7
- globalTeardown: './jestSetup/globalTeardown.ts',
8
- moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
9
- preset: 'ts-jest',
10
- setupFiles: ['dotenv/config'],
11
- setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all', './jestSetup/setupFiles.ts'],
12
- testEnvironment: 'node',
13
- testRegex: String.raw`(/__tests__/.*|(\.|/)((!perf\.)test|spec))\.tsx?$`,
14
- testTimeout: 200_000,
15
- transform: {
16
- [`(${esModulesList}).+\\.js$`]: 'babel-jest',
17
- '^.+\\.tsx?$': [
18
- 'ts-jest',
19
- {
20
- tsconfig: 'tsconfig.test.json',
21
- useESM: true,
22
- },
23
- ],
24
- },
25
- transformIgnorePatterns: [`./node_modules/(?!${esModulesList})`],
26
- }
27
- }
28
-
29
- const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
30
-
31
- export default config