@rdfx/fs 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 type PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
2
1
  import type { DatasetCore, Stream } from "@rdfjs/types";
2
+ import type { PrefixMap } from "@rdfx/collection";
3
3
  import { type Either } from "purify-ts";
4
4
  import { type Logger } from "ts-log";
5
5
  import type { FileSystem } from "./FileSystem.js";
@@ -1,5 +1,5 @@
1
1
  import path from "node:path";
2
- import { Readable } from "node:stream";
2
+ import { iterableToStream } from "@rdfx/stream";
3
3
  import { EitherAsync } from "purify-ts";
4
4
  import { dummyLogger } from "ts-log";
5
5
  import { NodeFileSystem } from "./NodeFileSystem.js";
@@ -63,9 +63,7 @@ export class RdfDirectory {
63
63
  }
64
64
  }
65
65
  }
66
- return Readable.from(parseFiles(), {
67
- objectMode: true,
68
- });
66
+ return iterableToStream(parseFiles());
69
67
  }
70
68
  async parseInto(dataset, options) {
71
69
  return EitherAsync(async ({ liftEither }) => {
@@ -1,6 +1,6 @@
1
1
  import { Buffer } from "node:buffer";
2
2
  import path from "node:path";
3
- import datasetFactory from "@rdfjs/dataset";
3
+ import { datasetFactory } from "@rdfx/collection";
4
4
  import dataFactory from "@rdfx/data-factory";
5
5
  import { GraphIdentifier } from "@rdfx/graph-store";
6
6
  import parsers from "@rdfx/parsers";
package/dist/RdfFile.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
2
1
  import type { DatasetCore, Stream } from "@rdfjs/types";
2
+ import type { PrefixMap } from "@rdfx/collection";
3
3
  import type serializers from "@rdfx/serializers";
4
4
  import { Either } from "purify-ts";
5
5
  import { type Logger } from "ts-log";
@@ -1,5 +1,5 @@
1
- import type PrefixMap from "@rdfjs/prefix-map/PrefixMap.js";
2
1
  import type { DatasetCore, Stream } from "@rdfjs/types";
2
+ import { type PrefixMap } from "@rdfx/collection";
3
3
  import { type GraphIdentifier, type GraphStore } from "@rdfx/graph-store";
4
4
  import { Either, type Maybe } from "purify-ts";
5
5
  import { type Logger } from "ts-log";
@@ -4,9 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import datasetFactory from "@rdfjs/dataset";
7
+ import { datasetFactory } from "@rdfx/collection";
8
8
  import { RdfjsDatasetGraphStore, } from "@rdfx/graph-store";
9
- import intoStream from "into-stream";
9
+ import { iterableToStream } from "@rdfx/stream";
10
10
  import { Either, EitherAsync, Left } from "purify-ts";
11
11
  import { dummyLogger } from "ts-log";
12
12
  import { Memoize } from "typescript-memoize";
@@ -87,7 +87,7 @@ export class RdfFileGraphStore {
87
87
  await liftEither(await this.fileSystem.deleteFile(this.path, { force: true }));
88
88
  return return_;
89
89
  }
90
- await liftEither(await this.rdfFile.serialize(intoStream.object(unionDataset), {
90
+ await liftEither(await this.rdfFile.serialize(iterableToStream(unionDataset), {
91
91
  prefixes: this.prefixMap,
92
92
  }));
93
93
  return return_;
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "dependencies": {
3
- "@rdfx/data-factory": "0.0.36",
4
- "@rdfx/graph-store": "0.0.36",
5
- "@rdfx/parsers": "0.0.36",
6
- "@rdfx/serializers": "0.0.36",
7
- "@rdfx/string": "0.0.36",
8
- "@rdfjs/dataset": "~2.0.2",
9
- "@rdfjs/prefix-map": "~0.1.2",
3
+ "@rdfx/collection": "0.0.38",
4
+ "@rdfx/data-factory": "0.0.38",
5
+ "@rdfx/graph-store": "0.0.38",
6
+ "@rdfx/parsers": "0.0.38",
7
+ "@rdfx/serializers": "0.0.38",
8
+ "@rdfx/stream": "0.0.38",
9
+ "@rdfx/string": "0.0.38",
10
10
  "@rdfjs/types": "~2.0.1",
11
- "@types/rdfjs__dataset": "~2.0.7",
12
- "@types/rdfjs__prefix-map": "~0.1.5",
11
+ "@types/node": "^24",
13
12
  "@types/unbzip2-stream": "~1.4.3",
14
- "into-stream": "~9.1.0",
15
13
  "mime": "~4.1.0",
16
14
  "purify-ts": "~2.1.4",
17
15
  "ts-log": "~3.0.2",
18
16
  "typescript-memoize": "~1.1.1",
19
17
  "unbzip2-stream": "~1.4.3"
20
18
  },
21
- "devDependencies": {},
19
+ "devDependencies": {
20
+ "@rdfx/testing": "0.0.38"
21
+ },
22
22
  "files": [
23
23
  "LICENSE",
24
24
  "dist/*.d.ts",
@@ -35,12 +35,12 @@
35
35
  "scripts": {
36
36
  "build": "tsc -b",
37
37
  "clean": "rimraf dist",
38
- "depcheck": "depcheck .",
38
+ "depcheck": "depcheck --ignores=\"@tsconfig/*,vitest,vitest-fetch-mock\" .",
39
39
  "dev": "tsc -w --preserveWatchOutput",
40
40
  "dev:tests": "tsc -p __tests__ -w --preserveWatchOutput",
41
41
  "test": "cd ../.. && vitest run /Users/minor/projects/rdfx/packages/fs/__tests__"
42
42
  },
43
43
  "type": "module",
44
44
  "types": "./dist/index.d.ts",
45
- "version": "0.0.36"
45
+ "version": "0.0.38"
46
46
  }