Skip to content

Commit ee852da

Browse files
committed
refactor: faster graph hydration
1 parent efd873e commit ee852da

7 files changed

Lines changed: 260 additions & 62 deletions

File tree

‎.changeset/three-humans-read.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"lit-rdf": patch
3+
---
4+
5+
Allow both `[id]` and `[data-attribute]` to select the graph from `window.graphs`
6+

‎.changeset/violet-hounds-double.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"lit-rdf": patch
3+
---
4+
5+
`rdf-graph` should not rely on RDF environment so that populating data from `window.graphs` is as fast as possible
6+

‎package-lock.json‎

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

‎package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@lit/context": "^1.1.6",
4040
"@rdfjs-elements/lit-helpers": "^0.3.13",
4141
"@rdfjs/data-model": "^2.1.1",
42+
"@rdfjs/dataset": "^2.0.3",
4243
"@rdfjs/types": "^2",
4344
"@zazuko/env": "^3.0.1",
4445
"@zazuko/prefixes": "^2.6.1",
@@ -56,6 +57,7 @@
5657
"@custom-elements-manifest/analyzer": "^0.11.0",
5758
"@eslint/config-helpers": "^0.7.0",
5859
"@eslint/js": "^10",
60+
"@lit-labs/ssr": "^4.1.0",
5961
"@open-wc/testing": "^5.0.0",
6062
"@rollup/plugin-commonjs": "^26",
6163
"@rolldown/plugin-node-polyfills": "^1.0.3",
@@ -66,6 +68,7 @@
6668
"@types/clownface": "^2.0.10",
6769
"@types/is-url": "^1.2.32",
6870
"@types/rdfjs__data-model": "^2.0.9",
71+
"@types/rdfjs__dataset": "^2.0.7",
6972
"@types/readable-stream": "^4.0.24",
7073
"@types/sinon": "^22.0.0",
7174
"@typescript-eslint/eslint-plugin": "^8.66.0",

0 commit comments

Comments
 (0)