toolmenu 0.14.0 → 0.14.1
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/README.md +1 -1
- package/dist/diff.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ jobs:
|
|
|
104
104
|
- uses: actions/setup-node@v7
|
|
105
105
|
with: { node-version: 22 }
|
|
106
106
|
- run: npm ci && npm run build
|
|
107
|
-
- uses: niksa90/toolmenu@v0.14.
|
|
107
|
+
- uses: niksa90/toolmenu@v0.14.1
|
|
108
108
|
with:
|
|
109
109
|
command: node dist/server.js
|
|
110
110
|
baseline: menu.json # your committed snapshot
|
package/dist/diff.js
CHANGED
|
@@ -1148,7 +1148,11 @@ function expandRefs(schema) {
|
|
|
1148
1148
|
return { ...walk(target, [...stack, o.$ref]), ...walk(siblings, stack) };
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
|
-
|
|
1151
|
+
// A $ref left as a $ref (a recursive definition past MAX_UNROLL): `definitions` and `$defs` are one
|
|
1152
|
+
// place under two spellings, and the root pool is dropped below, so the reference reads the same.
|
|
1153
|
+
// Left as written, a generator upgrade that renames the pool made every recursive $ref look like a
|
|
1154
|
+
// different option ("no longer accepts #/definitions/x" beside the unchanged #/$defs/x).
|
|
1155
|
+
return Object.fromEntries(Object.entries(o).map(([k, v]) => [k, k === '$ref' && typeof v === 'string' ? v.replace(/^#\/definitions\//, '#/$defs/') : walk(v, stack)]));
|
|
1152
1156
|
};
|
|
1153
1157
|
const { $defs: _defs, definitions: _definitions, ...rest } = schema;
|
|
1154
1158
|
try {
|
package/package.json
CHANGED