@adguard/agtree 1.1.8 → 2.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adguard/agtree",
3
- "version": "1.1.8",
3
+ "version": "2.0.0",
4
4
  "description": "Universal adblock filter list parser.",
5
5
  "keywords": [
6
6
  "adblock",
@@ -20,7 +20,6 @@
20
20
  "url": "https://github.com/AdguardTeam/tsurlfilter/issues"
21
21
  },
22
22
  "homepage": "https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree#readme",
23
- "type": "module",
24
23
  "main": "dist/agtree.cjs",
25
24
  "module": "dist/agtree.esm.js",
26
25
  "browser": "dist/agtree.umd.min.js",
@@ -39,7 +38,7 @@
39
38
  "dist"
40
39
  ],
41
40
  "engines": {
42
- "node": ">=14"
41
+ "node": ">=17"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@babel/core": "^7.22.5",
@@ -51,18 +50,24 @@
51
50
  "@rollup/plugin-node-resolve": "^15.1.0",
52
51
  "@rollup/plugin-terser": "^0.4.3",
53
52
  "@rollup/plugin-typescript": "^11.1.2",
54
- "@rollup/plugin-yaml": "^4.1.1",
55
53
  "@swc/core": "^1.3.100",
56
54
  "@swc/helpers": "^0.5.3",
57
55
  "@swc/jest": "^0.2.29",
56
+ "@types/benchmark": "^2.1.5",
58
57
  "@types/clone-deep": "^4.0.1",
59
58
  "@types/fs-extra": "^11.0.4",
60
- "@types/jest": "^29.5.3",
59
+ "@types/jest": "^29.5.12",
61
60
  "@types/js-yaml": "^4.0.5",
62
61
  "@types/node": "^20.2.3",
63
62
  "@types/semver": "^7.5.0",
63
+ "@types/sprintf-js": "^1.1.4",
64
64
  "@typescript-eslint/eslint-plugin": "^5.60.1",
65
65
  "@typescript-eslint/parser": "^5.60.1",
66
+ "benchmark": "^2.1.4",
67
+ "camelcase-keys": "^7.0.2",
68
+ "consola": "^3.2.3",
69
+ "console-table-printer": "^2.12.0",
70
+ "date-fns": "^3.3.1",
66
71
  "eslint": "^8.43.0",
67
72
  "eslint-config-airbnb-typescript": "^17.0.0",
68
73
  "eslint-plugin-import": "^2.27.5",
@@ -73,40 +78,49 @@
73
78
  "jest": "^29.5.0",
74
79
  "js-yaml": "^4.1.0",
75
80
  "jsdoc": "^4.0.2",
81
+ "lodash": "4.17.21",
82
+ "markdown-table": "^3.0.3",
76
83
  "markdownlint": "^0.29.0",
77
84
  "markdownlint-cli": "^0.35.0",
85
+ "node-fetch": "^3.3.2",
86
+ "object-sizeof": "^2.6.4",
87
+ "playwright": "^1.41.2",
88
+ "prettier": "^3.3.2",
78
89
  "regenerator-runtime": "^0.14.0",
79
90
  "rimraf": "^5.0.1",
80
91
  "rollup": "^3.25.3",
81
92
  "rollup-plugin-dts": "^5.3.0",
82
93
  "rollup-plugin-node-externals": "^6.1.1",
83
94
  "rollup-plugin-polyfill-node": "^0.12.0",
84
- "superstruct": "^1.0.3",
95
+ "systeminformation": "^5.22.0",
85
96
  "ts-node": "^10.9.2",
86
- "typescript": "^5.0.4",
87
- "yaml-jest-transform": "^2.0.2",
88
- "zod": "^3.22.2"
97
+ "tsx": "^4.7.3",
98
+ "type-fest": "^4.18.0",
99
+ "typescript": "^5.0.4"
89
100
  },
90
101
  "dependencies": {
91
- "@adguard/ecss-tree": "^1.0.8",
92
- "@adguard/scriptlets": "^1.9.61",
93
102
  "clone-deep": "^4.0.1",
103
+ "is-ip": "3.1.0",
94
104
  "json5": "^2.2.3",
95
105
  "semver": "^7.5.3",
106
+ "sprintf-js": "^1.1.3",
96
107
  "tldts": "^5.7.112",
97
- "xregexp": "^5.1.1"
108
+ "xregexp": "^5.1.1",
109
+ "zod": "3.21.4",
110
+ "@adguard/css-tokenizer": "^1.0.0"
98
111
  },
99
112
  "scripts": {
100
- "build": "pnpm clean && pnpm build-types && pnpm build-txt && pnpm rollup --config rollup.config.ts --configPlugin typescript && pnpm clean-types",
101
- "build-txt": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/build-txt.ts",
113
+ "build": "pnpm clean && pnpm build-types && pnpm build-txt && pnpm build-compatibility-tables && pnpm build-compatibility-tables-wiki && pnpm rollup --config rollup.config.ts --configPlugin typescript && pnpm clean-types",
114
+ "build-txt": "tsx scripts/build-txt.ts",
102
115
  "build-types": "tsc --declaration --emitDeclarationOnly --outdir dist/types",
103
- "check-compatibility-tables": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/check-compatibility-tables.ts",
116
+ "build-compatibility-tables": "tsx scripts/build-compatibility-tables.ts",
117
+ "build-compatibility-tables-wiki": "tsx scripts/build-compatibility-tables-wiki.ts",
104
118
  "check-types": "tsc --noEmit",
105
119
  "clean": "rimraf dist",
106
120
  "clean-types": "rimraf dist/types",
107
121
  "coverage": "jest --runInBand --coverage",
108
122
  "increment": "pnpm version patch --no-git-tag-version",
109
- "lint": "pnpm lint:ts && pnpm lint:md",
123
+ "lint": "pnpm check-types && pnpm lint:ts && pnpm lint:md",
110
124
  "lint:md": "markdownlint .",
111
125
  "lint:ts": "eslint . --cache --ext .ts",
112
126
  "precommit": "pnpm check-types && pnpm lint && pnpm test",