Skip to content

Commit 106cf75

Browse files
committed
Update docusaurus and fix circular import
1 parent 1f58a72 commit 106cf75

File tree

10 files changed

+890
-928
lines changed

10 files changed

+890
-928
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
**Features**
1010

11-
- Added the non-standard _key_ selector.
12-
- Added the non-standard _keys filter_ selector.
11+
- Added the non-standard _key_ selector ([docs](https://jg-rp.github.io/json-p3/guides/jsonpath-extra#key-selector)).
12+
- Added the non-standard _keys filter_ selector ([docs](https://jg-rp.github.io/json-p3/guides/jsonpath-extra#keys-filter-selector)).
1313

1414
## Version 1.2.1
1515

docs/docs/guides/jsonpath-extra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Non-standard features are subject to change if:
1818
- an overwhelming consensus emerges from the JSONPath community that differs from our choices.
1919
:::
2020

21-
The following definitions build on [RFC 9535](https://datatracker.ietf.org/doc/html/rfc9535) ([license info](https://trustee.ietf.org/license-info)), while trying to stay true to its JSONPath model. These non-standard selectors are known to break the definition of _location_ and _children_ from in RFC 9535.
21+
The following definitions build on [RFC 9535](https://datatracker.ietf.org/doc/html/rfc9535) ([license info](https://trustee.ietf.org/license-info)), while trying to stay true to its JSONPath model. These non-standard selectors are known to break the definition of _location_ and _children_ from RFC 9535.
2222

2323
## Key selector
2424

docs/package-lock.json

Lines changed: 877 additions & 915 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "^3.1.1",
18-
"@docusaurus/preset-classic": "^3.1.1",
17+
"@docusaurus/core": "^3.3.0",
18+
"@docusaurus/preset-classic": "^3.3.0",
1919
"@mdx-js/react": "^3.0.0",
2020
"@monaco-editor/react": "^4.6.0",
2121
"@tsconfig/docusaurus": "^2.0.2",
@@ -35,7 +35,7 @@
3535
"typescript": "^5.3.3"
3636
},
3737
"devDependencies": {
38-
"@docusaurus/module-type-aliases": "^3.1.1",
38+
"@docusaurus/module-type-aliases": "^3.3.0",
3939
"prettier": "^3.1.1",
4040
"prettier-plugin-tailwindcss": "^0.5.10"
4141
},

docs/src/components/JSONPathPlayground/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function ResultTab({ fileName, file, setFileName }) {
3030
"flex cursor-pointer items-center border-none px-4 py-1 text-sm font-medium",
3131
fileName === file.name
3232
? "bg-[#F8F8FF] text-slate-700 dark:bg-[#1E1E1E] dark:text-neutral-300"
33-
: "bg-slate-200 text-slate-500 hover:bg-[#F8F8FF] hover:text-slate-700 dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-600",
33+
: "bg-slate-200 text-slate-500 hover:bg-[#F8F8FF] hover:text-slate-700 dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-600 dark:hover:text-neutral-300",
3434
)}
3535
onClick={() => setFileName(fileName)}
3636
>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-p3",
3-
"version": "1.2.2",
3+
"version": "1.3.0",
44
"author": "James Prior",
55
"license": "MIT",
66
"description": "JSONPath, JSON Pointer and JSON Patch",

src/path/extra/selectors.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { LogicalExpression } from "../expression";
44
import { JSONPathNode } from "../node";
55
import { JSONPathSelector } from "../selectors";
66
import { Token } from "../token";
7-
import { FilterContext, hasStringKey } from "../types";
8-
9-
export const KEY_MARK = "\x02";
7+
import { FilterContext, KEY_MARK, hasStringKey } from "../types";
108

119
export class KeySelector extends JSONPathSelector {
1210
constructor(

src/path/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export {
2626
JSONPathRecursionLimitError,
2727
} from "./errors";
2828

29-
export { Nothing } from "./types";
29+
export { Nothing, KEY_MARK } from "./types";
3030
export type { JSONPathValue, FilterContext } from "./types";
3131

3232
export const DEFAULT_ENVIRONMENT = new JSONPathEnvironment();

src/path/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { JSONPointer } from "../pointer";
22
import { JSONValue, isString } from "../types";
3-
import { KEY_MARK } from "./extra/selectors";
3+
import { KEY_MARK } from "./types";
44

55
/**
66
* The pair of a JSON value and its location found in the target JSON value.

src/path/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ export function hasStringKey(
2828
): value is { [key: string]: unknown } {
2929
return isObject(value) && Object.hasOwn(value, key);
3030
}
31+
32+
export const KEY_MARK = "\x02";

0 commit comments

Comments
 (0)