Skip to content

Commit e501301

Browse files
committed
build: no rdf-js
1 parent 3b11df2 commit e501301

File tree

9 files changed

+584
-302
lines changed

9 files changed

+584
-302
lines changed

.changeset/new-cherries-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"clownface-shacl-path": patch
3+
---
4+
5+
Removed imports of `rdf-js`

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"extends": [ "@tpluscode" ],
33
"parserOptions": {
44
"project": "./tsconfig.lint.json"
5+
},
6+
"rules": {
7+
"@typescript-eslint/no-explicit-any": "warn"
58
}
69
}

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
"dependencies": {
2424
"@rdfjs/term-set": "^2.0.1",
2525
"@tpluscode/rdf-ns-builders": ">=3.0.2",
26-
"@tpluscode/rdf-string": "^1.0.1"
26+
"@tpluscode/rdf-string": "^1.3.1"
2727
},
2828
"peerDependencies": {
2929
"clownface": "1 - 2"
3030
},
3131
"devDependencies": {
3232
"@changesets/cli": "^2.19.0",
33-
"@tpluscode/eslint-config": "^0.4.4",
33+
"@tpluscode/eslint-config": "^0.4.5",
3434
"@types/chai": "^4.2.19",
3535
"@types/mocha": "^10",
3636
"@types/node": "^18",
37-
"@typescript-eslint/eslint-plugin": "^5.55.0",
38-
"@typescript-eslint/parser": "^5.55.0",
39-
"@zazuko/env-node": "^1.0.3",
37+
"@typescript-eslint/eslint-plugin": "^7.8.0",
38+
"@typescript-eslint/parser": "^7.8.0",
39+
"@zazuko/env-node": "^2.1.2",
4040
"c8": "^7.13.0",
4141
"chai": "^4.3.4",
4242
"clownface": "^2.0.0",

src/lib/findNodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NamedNode, Term } from 'rdf-js'
1+
import type { NamedNode, Term } from '@rdfjs/types'
22
import type { MultiPointer } from 'clownface'
33
import TermSet from '@rdfjs/term-set'
44
import * as Path from './path.js'

src/lib/path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NamedNode } from 'rdf-js'
1+
import type { NamedNode } from '@rdfjs/types'
22
import { GraphPointer, MultiPointer } from 'clownface'
33
import { sh } from '@tpluscode/rdf-ns-builders'
44

src/lib/toSparql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NamedNode } from 'rdf-js'
1+
import type { NamedNode } from '@rdfjs/types'
22
import { SparqlTemplateResult, sparql } from '@tpluscode/rdf-string'
33
import { MultiPointer } from 'clownface'
44
import { assertWellFormedPath, fromNode, PathVisitor } from './path.js'

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NamedNode, BlankNode, Term } from 'rdf-js'
1+
import type { NamedNode, BlankNode, Term } from '@rdfjs/types'
22
import { expect } from 'chai'
33
import { describe, it } from 'mocha'
44
import { schema, sh, skos, foaf, rdf, owl } from '@tpluscode/rdf-ns-builders'

test/nodeFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NamedNode } from 'rdf-js'
21
import { Readable } from 'node:stream'
2+
import type { NamedNode } from '@rdfjs/types'
33
import RDF from '@zazuko/env-node'
44
import stringToStream from 'string-to-stream'
55
import { turtle } from '@tpluscode/rdf-string'

0 commit comments

Comments
 (0)