Skip to content

Commit d499299

Browse files
committed
Cleanup
1 parent 54ca517 commit d499299

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.github/
22
eslint.config.js
33
**/*.test.js
4-
src/json/jsonast-util-tests/
4+
bin/
55
tsconfig.json
6+
tsconfig.build.json
7+
src/json/jsonast-util-tests/
68
lib/jref/SPECIFICATION.md
79
scratch/
810
TODO*

eslint.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default tseslint.config(
1212
arrowParens: true,
1313
braceStyle: "1tbs",
1414
commaDangle: "never",
15-
flat: true,
1615
jsx: false,
1716
quotes: "double",
1817
semi: true

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,20 @@
3232
"coverage": "vitest run --coverage",
3333
"type-check": "tsc --noEmit",
3434
"docs": "typedoc",
35-
"prepack": "tsc --project tsconfig.build.json",
36-
"postpack": "node ./bin/postpack.js"
35+
"prepublishOnly": "tsc --project tsconfig.build.json"
3736
},
3837
"devDependencies": {
3938
"@stylistic/eslint-plugin": "*",
40-
"@types/content-type": "^1.1.8",
41-
"@types/moo": "^0.5.9",
39+
"@types/content-type": "*",
40+
"@types/moo": "*",
4241
"@types/node": "*",
4342
"@typescript-eslint/eslint-plugin": "*",
4443
"@typescript-eslint/parser": "*",
4544
"eslint-import-resolver-typescript": "*",
4645
"eslint-plugin-import": "*",
47-
"typedoc": "^0.27.6",
46+
"typedoc": "*",
4847
"typescript-eslint": "*",
49-
"undici": "^7.3.0",
48+
"undici": "*",
5049
"vitest": "*"
5150
},
5251
"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)