From 11469741d4e2a74ac09ffa8102da27c151249d2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:23:43 +0000 Subject: [PATCH 1/2] Chore(deps): bump rdf-dereference from 2.2.0 to 3.0.0 Bumps [rdf-dereference](https://github.com/rubensworks/rdf-dereference.js) from 2.2.0 to 3.0.0. - [Changelog](https://github.com/rubensworks/rdf-dereference.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubensworks/rdf-dereference.js/compare/v2.2.0...v3.0.0) --- updated-dependencies: - dependency-name: rdf-dereference dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 25c783c..891847e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "event-emitter-promisify": "^1.1.0", "n3": "^1.22.3", "next": "^14.2.13", - "rdf-dereference": "^2.2.0", + "rdf-dereference": "^3.0.0", "rdf-namespaces": "^1.11.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -11985,9 +11985,9 @@ } }, "node_modules/rdf-dereference": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/rdf-dereference/-/rdf-dereference-2.2.0.tgz", - "integrity": "sha512-6geM3CSUlXTK3n4OoKsL95M7XwKXoxiwK7cf4e/+Dj0X/ll77ihFN5j9VhLGXNYbMXDlm30kBg/VU6ymMv6o/Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/rdf-dereference/-/rdf-dereference-3.0.0.tgz", + "integrity": "sha512-LxB1dP357S/NuivEfNa2YMbnY+k+hPNrvAx/p6CUaHhKv5wuqJHtfmbm8ahqbo/98CizjoFew5xT4WlqedXWYA==", "dependencies": { "@comunica/actor-dereference-fallback": "^2.0.2", "@comunica/actor-dereference-file": "^2.0.2", diff --git a/package.json b/package.json index 258f0cf..9ab69b3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "event-emitter-promisify": "^1.1.0", "n3": "^1.22.3", "next": "^14.2.13", - "rdf-dereference": "^2.2.0", + "rdf-dereference": "^3.0.0", "rdf-namespaces": "^1.11.0", "react": "^18.3.1", "react-dom": "^18.3.1", From d75447d4dba04cb0f1643c2d2cd83787bbc07cb3 Mon Sep 17 00:00:00 2001 From: Pete Edwards Date: Mon, 7 Oct 2024 16:38:27 +0100 Subject: [PATCH 2/2] Fix import of rdfDereferencer --- src/session/PurposeCache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session/PurposeCache.ts b/src/session/PurposeCache.ts index 9ef843d..bb993bc 100644 --- a/src/session/PurposeCache.ts +++ b/src/session/PurposeCache.ts @@ -18,7 +18,7 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -import dereference from "rdf-dereference"; +import { rdfDereferencer } from "rdf-dereference"; import { Quad } from "@rdfjs/types"; import { SKOS } from "../helpers/access/access"; @@ -32,7 +32,7 @@ export type PurposeCache = Record< { purposeLabel?: string | undefined; definition?: string | undefined } >; export async function addToCache(url: string, cache: PurposeCache) { - const { data } = await dereference.dereference(url, {}); + const { data } = await rdfDereferencer.dereference(url, {}); return new Promise((res, rej) => { data.on("data", ({ subject, predicate, object, graph }: Quad) => {