json-p3 2.2.2 → 2.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.
Files changed (46) hide show
  1. package/README.md +0 -1
  2. package/dist/json-p3.browser.js +5303 -0
  3. package/dist/json-p3.browser.min.js +2 -0
  4. package/dist/json-p3.browser.min.js.map +1 -0
  5. package/dist/json-p3.cjs.js +70 -97
  6. package/dist/json-p3.esm.js +70 -97
  7. package/dist/json-p3.iife.min.js +1 -1
  8. package/dist/json-p3.iife.min.js.map +1 -1
  9. package/package.json +11 -24
  10. package/dist/deep_equals.d.ts +0 -10
  11. package/dist/index.d.ts +0 -10
  12. package/dist/json-p3.iife.js +0 -5366
  13. package/dist/patch/errors.d.ts +0 -11
  14. package/dist/patch/index.d.ts +0 -11
  15. package/dist/patch/patch.d.ts +0 -161
  16. package/dist/path/environment.d.ts +0 -165
  17. package/dist/path/errors.d.ts +0 -65
  18. package/dist/path/expression.d.ts +0 -101
  19. package/dist/path/extra/expression.d.ts +0 -6
  20. package/dist/path/extra/index.d.ts +0 -0
  21. package/dist/path/extra/selectors.d.ts +0 -35
  22. package/dist/path/functions/count.d.ts +0 -7
  23. package/dist/path/functions/function.d.ts +0 -26
  24. package/dist/path/functions/has.d.ts +0 -44
  25. package/dist/path/functions/index.d.ts +0 -11
  26. package/dist/path/functions/length.d.ts +0 -7
  27. package/dist/path/functions/match.d.ts +0 -33
  28. package/dist/path/functions/pattern.d.ts +0 -2
  29. package/dist/path/functions/search.d.ts +0 -34
  30. package/dist/path/functions/value.d.ts +0 -7
  31. package/dist/path/index.d.ts +0 -76
  32. package/dist/path/lex.d.ts +0 -74
  33. package/dist/path/lru_cache.d.ts +0 -10
  34. package/dist/path/node.d.ts +0 -84
  35. package/dist/path/parse.d.ts +0 -61
  36. package/dist/path/path.d.ts +0 -42
  37. package/dist/path/segments.d.ts +0 -39
  38. package/dist/path/selectors.d.ts +0 -85
  39. package/dist/path/serialize.d.ts +0 -6
  40. package/dist/path/token.d.ts +0 -70
  41. package/dist/path/types.d.ts +0 -46
  42. package/dist/pointer/errors.d.ts +0 -42
  43. package/dist/pointer/index.d.ts +0 -24
  44. package/dist/pointer/pointer.d.ts +0 -106
  45. package/dist/tsconfig.tsbuildinfo +0 -1
  46. package/dist/types.d.ts +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-p3",
3
- "version": "2.2.2",
3
+ "version": "2.3.0",
4
4
  "author": "James Prior",
5
5
  "license": "MIT",
6
6
  "description": "JSONPath, JSON Pointer and JSON Patch",
@@ -29,9 +29,10 @@
29
29
  ],
30
30
  "main": "dist/json-p3.cjs.js",
31
31
  "module": "dist/json-p3.esm.js",
32
- "browser": "dist/json-p3.iife.js",
33
- "browser-min": "dist/json-p3.iife.min.js",
32
+ "browser": "dist/json-p3.browser.js",
33
+ "browser-min": "dist/json-p3.browser.min.js",
34
34
  "jsdelivr": "dist/json-p3.iife.min.js",
35
+ "unpkg": "dist/json-p3.iife.min.js",
35
36
  "types": "dist/index.d.ts",
36
37
  "files": [
37
38
  "dist/**/*"
@@ -41,39 +42,25 @@
41
42
  "@babel/core": "^7.26.0",
42
43
  "@babel/preset-env": "^7.26.0",
43
44
  "@babel/preset-typescript": "^7.26.0",
45
+ "@eslint/js": "^10.0.1",
44
46
  "@jest/globals": "^29.7.0",
45
47
  "@rollup/plugin-babel": "^6.0.4",
46
48
  "@rollup/plugin-commonjs": "^25.0.8",
47
49
  "@rollup/plugin-node-resolve": "^15.3.0",
48
50
  "@rollup/plugin-replace": "^5.0.7",
49
- "@rollup/plugin-terser": "^0.4.4",
51
+ "@rollup/plugin-terser": "^1.0.0",
50
52
  "@rollup/plugin-typescript": "^11.1.6",
51
53
  "@types/jest": "^29.5.14",
52
- "@typescript-eslint/eslint-plugin": "^8.17.0",
53
- "@typescript-eslint/parser": "^8.17.0",
54
- "eslint": "^8.57.1",
55
- "eslint-config-prettier": "^9.1.0",
56
- "eslint-plugin-escompat": "^3.11.4",
57
- "eslint-plugin-eslint-comments": "^3.2.0",
58
- "eslint-plugin-filenames": "^1.3.2",
59
- "eslint-plugin-github": "^4.10.2",
60
- "eslint-plugin-i18n-text": "^1.0.1",
61
- "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-jsdoc": "^47.0.2",
63
- "eslint-plugin-n": "^16.6.2",
64
- "eslint-plugin-no-only-tests": "^3.3.0",
65
- "eslint-plugin-node": "^11.1.0",
66
- "eslint-plugin-prettier": "^5.2.1",
67
- "eslint-plugin-promise": "^6.6.0",
68
- "eslint-plugin-sonarjs": "^0.23.0",
69
- "eslint-plugin-tsdoc": "^0.2.17",
54
+ "eslint": "^10.9.1",
55
+ "eslint-plugin-sonarjs": "^4.2.0",
70
56
  "iregexp-check": "^0.1.2",
71
57
  "jest": "^29.7.0",
72
- "prettier": "^3.4.2",
58
+ "prettier": "^3.9.6",
73
59
  "rollup": "^4.28.0",
74
60
  "ts-jest": "^29.2.5",
75
61
  "tslib": "^2.8.1",
76
- "typescript": "^5.7.2"
62
+ "typescript": "^5.9.3",
63
+ "typescript-eslint": "^8.69.0"
77
64
  },
78
65
  "keywords": [
79
66
  "JSON",
@@ -1,10 +0,0 @@
1
- /**
2
- * Deep equality of JSON-like values.
3
- *
4
- * No attempt is made to handle function objects, recursive data
5
- * structures, NaNs, sparse arrays, primitive wrapper objects....
6
- *
7
- * We're not using JSON.stringify because we want objects with the same
8
- * entries in a different order to compare equal.
9
- */
10
- export declare function deepEquals(a: unknown, b: unknown): boolean;
package/dist/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export declare const version = "__VERSION__";
2
- export * as jsonpath from "./path";
3
- export { DEFAULT_ENVIRONMENT, FunctionExpressionType, JSONPathQuery, JSONPathEnvironment, JSONPathError, JSONPathIndexError, JSONPathLexerError, JSONPathNode, JSONPathNodeList, JSONPathSyntaxError, JSONPathTypeError, JSONPathRecursionLimitError, Token, TokenKind, Nothing, lazyQuery, query, compile, } from "./path";
4
- export type { JSONPathEnvironmentOptions, FilterFunction } from "./path";
5
- export * as jsonpointer from "./pointer";
6
- export { JSONPointer, RelativeJSONPointer, resolve, UNDEFINED, } from "./pointer";
7
- export * as jsonpatch from "./patch";
8
- export { JSONPatch, JSONPatchError, JSONPatchTestFailure, apply, } from "./patch";
9
- export type { OpObject } from "./patch";
10
- export type { JSONValue } from "./types";