@xylabs/sdk-js 4.0.1 → 4.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/eslint.config.mjs CHANGED
@@ -1,13 +1,24 @@
1
1
  // eslint.config.mjs
2
2
 
3
- import { config as xylabsConfig } from '@xylabs/eslint-config-flat'
3
+ import { typescriptConfig,
4
+ unicornConfig,
5
+ workspacesConfig,
6
+ rulesConfig,
7
+ importConfig } from '@xylabs/eslint-config-flat'
4
8
 
5
9
  export default [
6
10
  {
7
- ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],
11
+ ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs'],
8
12
  },
9
- ...xylabsConfig,
13
+ unicornConfig,
14
+ workspacesConfig,
15
+ rulesConfig,
16
+ importConfig,
10
17
  {
11
- rules: {},
12
- },
18
+ ...typescriptConfig,
19
+ rules: {
20
+ ...typescriptConfig.rules,
21
+ '@typescript-eslint/consistent-type-imports': ['warn']
22
+ },
23
+ }
13
24
  ]
package/jest.config.ts CHANGED
@@ -5,9 +5,7 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
5
5
  extensionsToTreatAsEsm: ['.ts'],
6
6
  globalSetup: './jestSetup/globalSetup.ts',
7
7
  globalTeardown: './jestSetup/globalTeardown.ts',
8
- moduleNameMapper: {
9
- '^(\\.{1,2}/.*)\\.js$': '$1',
10
- },
8
+ moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
11
9
  preset: 'ts-jest',
12
10
  setupFiles: ['dotenv/config'],
13
11
  setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all', './jestSetup/setupFiles.ts'],
@@ -1,7 +1,7 @@
1
1
  import { config } from 'dotenv'
2
2
  config()
3
- import { Config } from 'jest'
4
- import { SuperTest, Test } from 'supertest'
3
+ import type { Config } from 'jest'
4
+ import type { SuperTest, Test } from 'supertest'
5
5
 
6
6
  // Augment global scope with shared variables (must be var)
7
7
  declare global {
@@ -1,6 +1,6 @@
1
1
  import { config } from 'dotenv'
2
2
  config()
3
- import { Config } from 'jest'
3
+ import type { Config } from 'jest'
4
4
 
5
5
  /**
6
6
  * Jest global teardown method runs after all tests are run
package/package.json CHANGED
@@ -1,19 +1,30 @@
1
1
  {
2
- "license": "LGPL-3.0-only",
3
2
  "name": "@xylabs/sdk-js",
3
+ "version": "4.0.3",
4
+ "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
+ "keywords": [
6
+ "xylabs",
7
+ "utility",
8
+ "typescript",
9
+ "esm"
10
+ ],
11
+ "homepage": "https://xylabs.com",
12
+ "bugs": {
13
+ "url": "git+https://github.com/xylabs/sdk-js/issues",
14
+ "email": "support@xylabs.com"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/xylabs/sdk-js.git"
19
+ },
20
+ "license": "LGPL-3.0-only",
4
21
  "author": {
5
- "email": "support@xylabs.com",
6
22
  "name": "XY Labs Development Team",
7
- "url": "https://xylabs.com"
8
- },
9
- "bugs": {
10
23
  "email": "support@xylabs.com",
11
- "url": "https://github.com/xylabs/sdk-js/issues"
24
+ "url": "https://xylabs.com"
12
25
  },
13
- "workspaces": [
14
- "packages/**/*"
15
- ],
16
- "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
26
+ "sideEffects": false,
27
+ "type": "module",
17
28
  "exports": {
18
29
  ".": {
19
30
  "types": "./dist/neutral/index.d.ts",
@@ -21,89 +32,76 @@
21
32
  },
22
33
  "./package.json": "./package.json"
23
34
  },
24
- "types": "./dist/neutral/index.d.ts",
25
35
  "module": "./dist/neutral/index.mjs",
26
- "homepage": "https://xylabs.com",
27
- "keywords": [
28
- "xylabs",
29
- "utility",
30
- "typescript",
31
- "esm"
36
+ "types": "./dist/neutral/index.d.ts",
37
+ "workspaces": [
38
+ "packages/**/*"
32
39
  ],
40
+ "scripts": {
41
+ "build-typedoc-site": "xy gen-docs @xylabs/sdk-js"
42
+ },
33
43
  "dependencies": {
34
- "@xylabs/api": "^4.0.1",
35
- "@xylabs/array": "^4.0.1",
36
- "@xylabs/assert": "^4.0.1",
37
- "@xylabs/axios": "^4.0.1",
38
- "@xylabs/crypto": "^4.0.1",
39
- "@xylabs/decimal-precision": "^4.0.1",
40
- "@xylabs/delay": "^4.0.1",
41
- "@xylabs/error": "^4.0.1",
42
- "@xylabs/eth-address": "^4.0.1",
43
- "@xylabs/exists": "^4.0.1",
44
- "@xylabs/forget": "^4.0.1",
45
- "@xylabs/function-name": "^4.0.1",
46
- "@xylabs/hex": "^4.0.1",
47
- "@xylabs/log": "^4.0.1",
48
- "@xylabs/logger": "^4.0.1",
49
- "@xylabs/object": "^4.0.1",
50
- "@xylabs/platform": "^4.0.1",
51
- "@xylabs/profile": "^4.0.1",
52
- "@xylabs/promise": "^4.0.1",
53
- "@xylabs/retry": "^4.0.1",
54
- "@xylabs/set": "^4.0.1",
55
- "@xylabs/static-implements": "^4.0.1",
56
- "@xylabs/timer": "^4.0.1",
57
- "@xylabs/url": "^4.0.1"
44
+ "@xylabs/api": "^4.0.3",
45
+ "@xylabs/array": "^4.0.3",
46
+ "@xylabs/assert": "^4.0.3",
47
+ "@xylabs/axios": "^4.0.3",
48
+ "@xylabs/crypto": "^4.0.3",
49
+ "@xylabs/decimal-precision": "^4.0.3",
50
+ "@xylabs/delay": "^4.0.3",
51
+ "@xylabs/error": "^4.0.3",
52
+ "@xylabs/eth-address": "^4.0.3",
53
+ "@xylabs/exists": "^4.0.3",
54
+ "@xylabs/forget": "^4.0.3",
55
+ "@xylabs/function-name": "^4.0.3",
56
+ "@xylabs/hex": "^4.0.3",
57
+ "@xylabs/log": "^4.0.3",
58
+ "@xylabs/logger": "^4.0.3",
59
+ "@xylabs/object": "^4.0.3",
60
+ "@xylabs/platform": "^4.0.3",
61
+ "@xylabs/profile": "^4.0.3",
62
+ "@xylabs/promise": "^4.0.3",
63
+ "@xylabs/retry": "^4.0.3",
64
+ "@xylabs/set": "^4.0.3",
65
+ "@xylabs/static-implements": "^4.0.3",
66
+ "@xylabs/timer": "^4.0.3",
67
+ "@xylabs/url": "^4.0.3"
58
68
  },
59
69
  "devDependencies": {
60
- "@stylistic/eslint-plugin": "^2.6.2",
70
+ "@stylistic/eslint-plugin": "^2.6.4",
61
71
  "@types/jest": "^29.5.12",
62
72
  "@types/supertest": "^6.0.2",
63
- "@typescript-eslint/eslint-plugin": "^8.1.0",
64
- "@typescript-eslint/parser": "^8.1.0",
65
- "@xylabs/config": "^4.0.0-rc.15",
66
- "@xylabs/eslint-config-flat": "^4.0.0-rc.15",
67
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
68
- "@xylabs/tsconfig": "^4.0.0-rc.15",
69
- "@xylabs/tsconfig-jest": "^4.0.0-rc.15",
70
- "babel-jest": "^29.7.0",
73
+ "@typescript-eslint/eslint-plugin": "^8.2.0",
74
+ "@typescript-eslint/parser": "^8.2.0",
75
+ "@xylabs/config": "^4.0.0",
76
+ "@xylabs/eslint-config-flat": "^4.0.0",
77
+ "@xylabs/ts-scripts-yarn3": "^4.0.0",
78
+ "@xylabs/tsconfig": "^4.0.0",
79
+ "@xylabs/tsconfig-jest": "^4.0.0",
71
80
  "dotenv": "^16.4.5",
72
81
  "eslint": "^9.9.0",
73
82
  "eslint-import-resolver-typescript": "^3.6.1",
83
+ "eslint-plugin-import": "^2.29.1",
74
84
  "jest": "^29.7.0",
75
85
  "jest-environment-jsdom": "^29.7.0",
76
86
  "jest-extended": "^4.0.2",
77
87
  "jest-sorted": "^1.0.15",
78
88
  "reflect-metadata": "^0.2.2",
79
89
  "supertest": "^7.0.0",
80
- "ts-jest": "^29.2.4",
81
- "ts-node": "^10.9.2",
82
90
  "tslib": "^2.6.3",
83
- "typedoc": "^0.26.5",
91
+ "typedoc": "^0.26.6",
84
92
  "typescript": "^5.5.4",
85
93
  "vitest": "^2.0.5"
86
94
  },
87
- "publishConfig": {
88
- "access": "public"
89
- },
90
- "repository": {
91
- "type": "git",
92
- "url": "https://github.com/xylabs/sdk-js.git"
93
- },
94
- "sideEffects": false,
95
95
  "packageManager": "yarn@4.4.0",
96
96
  "engines": {
97
97
  "node": ">=18.17.1"
98
98
  },
99
- "scripts": {
100
- "build-typedoc-site": "xy gen-docs @xylabs/sdk-js"
101
- },
102
99
  "engineStrict": true,
103
100
  "volta": {
104
101
  "node": "22.3.0",
105
102
  "yarn": "1.22.19"
106
103
  },
107
- "version": "4.0.1",
108
- "type": "module"
104
+ "publishConfig": {
105
+ "access": "public"
106
+ }
109
107
  }