@xyo-network/sdk-js 2.107.6 → 2.109.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,28 +1,44 @@
1
1
  // eslint.config.mjs
2
2
 
3
- import { typescriptConfig, importConfig, unicornConfig, prettierConfig, rulesConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
4
3
  import tsParser from '@typescript-eslint/parser'
4
+ import { importConfig, prettierConfig, rulesConfig, typescriptConfig, unicornConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
5
+ import deprecation from 'eslint-plugin-deprecation'
5
6
 
7
+ // eslint-disable-next-line import/no-default-export
6
8
  export default [
7
9
  {
8
10
  ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**'],
9
11
  },
10
12
  workspacesConfig,
11
- typescriptConfig,
12
13
  unicornConfig,
13
14
  prettierConfig,
14
15
  rulesConfig,
16
+ {
17
+ ...typescriptConfig,
18
+ plugins: { deprecation, ...typescriptConfig.plugins },
19
+ rules: {
20
+ ...typescriptConfig.rules,
21
+ 'deprecation/deprecation': ['warn'],
22
+ },
23
+ },
15
24
  {
16
25
  ...importConfig,
26
+ languageOptions: {
27
+ parser: tsParser,
28
+ parserOptions: {
29
+ ecmaFeatures: { modules: true },
30
+ ecmaVersion: 'latest',
31
+ project: './tsconfig-eslint.json',
32
+ },
33
+ },
17
34
  rules: {
18
35
  ...importConfig.rules,
19
- 'import/no-deprecated': ['off'],
36
+ 'import/no-deprecated': ['warn'],
20
37
  'import/no-internal-modules': ['off'],
21
38
  },
22
39
  },
23
40
  {
24
41
  rules: {
25
- 'no-unused-disable-directive': ['off'],
26
42
  complexity: ['error', 18],
27
43
  'max-depth': ['error', 6],
28
44
  'max-lines': [
@@ -34,33 +50,6 @@ export default [
34
50
  ],
35
51
  'max-nested-callbacks': ['error', 6],
36
52
  'max-statements': ['error', 32],
37
- 'no-restricted-imports': [
38
- 'warn',
39
- {
40
- paths: [
41
- 'lodash',
42
- 'react-player',
43
- 'filepond',
44
- 'aos',
45
- 'react-icons',
46
- '.',
47
- '..',
48
- '../..',
49
- '../../..',
50
- '../../../..',
51
- '../../../../..',
52
- '../../../../../..',
53
- '../../../../../../..',
54
- ],
55
- },
56
- ],
57
- //'no-secrets/no-secrets': ['off'],
58
- 'no-tabs': ['error'],
59
- 'no-unused-vars': 'off',
60
- 'no-useless-escape': 'off',
61
- quotes: [2, 'single', 'avoid-escape'],
62
- 'require-await': 'error',
63
- semi: ['warn', 'never'],
64
53
  'no-restricted-imports': [
65
54
  'warn',
66
55
  {
@@ -94,6 +83,16 @@ export default [
94
83
  ],
95
84
  },
96
85
  ],
86
+
87
+ //'no-secrets/no-secrets': ['off'],
88
+ 'no-tabs': ['error'],
89
+
90
+ 'no-unused-disable-directive': ['off'],
91
+ 'no-unused-vars': 'off',
92
+ 'no-useless-escape': 'off',
93
+ quotes: [2, 'single', 'avoid-escape'],
94
+ 'require-await': 'error',
95
+ semi: ['warn', 'never'],
97
96
  },
98
97
  },
99
98
  ]
package/jest.config.ts CHANGED
@@ -34,4 +34,5 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
34
34
 
35
35
  const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
36
36
 
37
+ // eslint-disable-next-line import/no-default-export
37
38
  export default config
@@ -5,6 +5,7 @@ import { SuperTest, Test } from 'supertest'
5
5
 
6
6
  // Augment global scope with shared variables (must be var)
7
7
  declare global {
8
+ // eslint-disable-next-line no-var
8
9
  var req: SuperTest<Test>
9
10
  }
10
11
 
@@ -15,4 +16,5 @@ declare global {
15
16
 
16
17
  const setup = async (_globalConfig: Config, _projectConfig: Config) => {}
17
18
 
19
+ // eslint-disable-next-line id-denylist
18
20
  module.exports = setup
@@ -9,4 +9,5 @@ import { Config } from 'jest'
9
9
 
10
10
  const teardown = async (_globalConfig: Config, _projectConfig: Config) => {}
11
11
 
12
+ // eslint-disable-next-line id-denylist
12
13
  module.exports = teardown
package/package.json CHANGED
@@ -12,24 +12,25 @@
12
12
  "packages/**/*"
13
13
  ],
14
14
  "dependencies": {
15
- "@xyo-network/core-payload-plugins": "^2.107.6",
16
- "@xyo-network/manifest": "^2.107.6",
17
- "@xyo-network/modules": "^2.107.6",
18
- "@xyo-network/protocol": "^2.107.6",
19
- "@xyo-network/sdk-utils": "^2.107.6",
20
- "@xyo-network/shared": "^2.107.6"
15
+ "@xyo-network/core-payload-plugins": "^2.109.0",
16
+ "@xyo-network/manifest": "^2.109.0",
17
+ "@xyo-network/modules": "^2.109.0",
18
+ "@xyo-network/protocol": "^2.109.0",
19
+ "@xyo-network/sdk-utils": "^2.109.0",
20
+ "@xyo-network/shared": "^2.109.0"
21
21
  },
22
22
  "description": "Primary SDK for using XYO Protocol 2.0",
23
23
  "devDependencies": {
24
24
  "@types/jest": "^29.5.12",
25
25
  "@types/supertest": "^6.0.2",
26
+ "@xylabs/eslint-config": "^3.11.12",
26
27
  "@xylabs/eslint-config-flat": "^3.11.12",
27
28
  "@xylabs/forget": "^3.5.2",
28
29
  "@xylabs/ts-scripts-yarn3": "^3.11.12",
29
30
  "@xylabs/tsconfig": "^3.11.12",
30
31
  "@xylabs/tsconfig-dom-jest": "^3.11.12",
31
32
  "dotenv": "^16.4.5",
32
- "eslint": "^9.5.0",
33
+ "eslint": "^9.6.0",
33
34
  "jest": "^29.7.0",
34
35
  "jest-docblock": "^29.7.0",
35
36
  "jest-environment-jsdom": "^29.7.0",
@@ -41,13 +42,14 @@
41
42
  "supertest": "^7.0.0",
42
43
  "ts-jest": "^29.1.5",
43
44
  "ts-node": "^10.9.2",
44
- "typedoc": "^0.26.2",
45
- "typedoc-material-theme": "^1.0.3",
46
- "typescript": "^5.5.2"
45
+ "typedoc": "^0.26.3",
46
+ "typedoc-material-theme": "^1.1.0",
47
+ "typescript": "^5.5.3"
47
48
  },
48
49
  "resolutions": {
49
50
  "axios": "^1",
50
51
  "bn.js": "^5",
52
+ "eslint": "^8",
51
53
  "ethers": "^6",
52
54
  "fake-indexeddb": "^4",
53
55
  "quick-lru": "^5"
@@ -116,7 +118,7 @@
116
118
  "build-typedoc-site": "typedoc"
117
119
  },
118
120
  "sideEffects": false,
119
- "version": "2.107.6",
121
+ "version": "2.109.0",
120
122
  "packageManager": "yarn@4.3.1",
121
123
  "volta": {
122
124
  "node": "22.3.0",