@rdfx/graph-store 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
+ import { iterableToStream } from "@rdfx/stream";
1
2
  import { Either, EitherAsync, Maybe } from "purify-ts";
2
- import { Readable } from "readable-stream";
3
3
  import { GraphIdentifier } from "./GraphIdentifier.js";
4
4
  /**
5
5
  * A GraphStore implementation backed by an RDF/JS Dataset.
@@ -54,7 +54,7 @@ export class RdfjsDatasetGraphStore {
54
54
  }
55
55
  async get(identifier) {
56
56
  for (const _ of this.dataset.match(null, null, null, identifier)) {
57
- return Either.of(Maybe.of(Readable.from(this.dataset.match(null, null, null, identifier))));
57
+ return Either.of(Maybe.of(iterableToStream(this.dataset.match(null, null, null, identifier))));
58
58
  }
59
59
  return Either.of(Maybe.empty());
60
60
  }
package/package.json CHANGED
@@ -1,16 +1,14 @@
1
1
  {
2
2
  "dependencies": {
3
+ "@rdfx/stream": "0.0.38",
3
4
  "@rdfjs/types": "~2.0.1",
4
- "@types/readable-stream": "~4.0.23",
5
5
  "purify-ts": "~2.1.4",
6
- "readable-stream": "^4.7.0",
7
6
  "ts-log": "~3.0.2"
8
7
  },
9
8
  "devDependencies": {
10
- "@rdfx/data-factory": "0.0.36",
11
- "@rdfjs/dataset": "~2.0.2",
12
- "get-stream": "~9.0.1",
13
- "into-stream": "~9.1.0"
9
+ "@rdfx/collection": "0.0.38",
10
+ "@rdfx/data-factory": "0.0.38",
11
+ "@rdfx/testing": "0.0.38"
14
12
  },
15
13
  "files": [
16
14
  "LICENSE",
@@ -28,12 +26,12 @@
28
26
  "scripts": {
29
27
  "build": "tsc -b",
30
28
  "clean": "rimraf dist",
31
- "depcheck": "depcheck .",
29
+ "depcheck": "depcheck --ignores=\"@tsconfig/*,vitest,vitest-fetch-mock\" .",
32
30
  "dev": "tsc -w --preserveWatchOutput",
33
31
  "dev:tests": "tsc -p __tests__ -w --preserveWatchOutput",
34
32
  "test": "cd ../.. && vitest run /Users/minor/projects/rdfx/packages/graph-store/__tests__"
35
33
  },
36
34
  "type": "module",
37
35
  "types": "./dist/index.d.ts",
38
- "version": "0.0.36"
36
+ "version": "0.0.38"
39
37
  }