Skip to content

Commit 53b7aab

Browse files
committed
Cleanup
1 parent 54ca517 commit 53b7aab

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Deploy Documentation
22

33
on:
44
push:
5-
tags:
6-
- "v*.*.*"
5+
branches:
6+
- "v2"
77
workflow_dispatch:
88

99
jobs:

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
eslint.config.js
33
**/*.test.js
44
src/json/jsonast-util-tests/
5-
tsconfig.json
65
lib/jref/SPECIFICATION.md
76
scratch/
87
TODO*

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
},
3838
"devDependencies": {
3939
"@stylistic/eslint-plugin": "*",
40-
"@types/content-type": "^1.1.8",
41-
"@types/moo": "^0.5.9",
40+
"@types/content-type": "*",
41+
"@types/moo": "*",
4242
"@types/node": "*",
4343
"@typescript-eslint/eslint-plugin": "*",
4444
"@typescript-eslint/parser": "*",
4545
"eslint-import-resolver-typescript": "*",
4646
"eslint-plugin-import": "*",
47-
"typedoc": "^0.27.6",
47+
"typedoc": "*",
4848
"typescript-eslint": "*",
49-
"undici": "^7.3.0",
49+
"undici": "*",
5050
"vitest": "*"
5151
},
5252
"dependencies": {

src/hyperjump/hyperjump.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import { mimeMatch } from "./utilities.js";
2828
* }} GetOptions
2929
*/
3030

31+
// TODO: Support filters
32+
3133
export class Hyperjump {
3234
// TODO: Add config to enable schemes and media types
3335
#config;
@@ -83,11 +85,11 @@ export class Hyperjump {
8385
* @throws  {@link JsonPointerError}
8486
*/
8587
async get(uri, options = this.#defaultGetOptions) {
86-
uri = resolveIri(uri, options.referencedFrom ?? contextUri());
88+
uri = resolveIri(uri, contextUri());
8789
const id = toAbsoluteIri(uri);
8890
let { fragment } = parseIri(uri);
8991

90-
// TODO: Cached and registered should be decoupled
92+
// TODO: How should cache work?
9193

9294
const cachedDocument = this.#cache[id];
9395
const embeddedDocument = options?.referencedFrom ? this.#cache[options.referencedFrom].embedded?.[id] : undefined;

src/jref/jref-cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ args({
2020
description: "CLI to process JRef",
2121
extensions: ["jref"],
2222
ignoreName: ".jrefignore",
23-
name: "rejref",
23+
name: "jref",
2424
packageField: "jrefConfig",
2525
pluginPrefix: "jref",
2626
processor: jref,

0 commit comments

Comments
 (0)