@pod-os/core 0.29.0 → 0.30.0-rc.4453840.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pod-os/core",
3
3
  "description": "Core module of PodOS",
4
- "version": "0.29.0",
4
+ "version": "0.30.0-rc.4453840.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./types/index.d.ts",
@@ -41,24 +41,24 @@
41
41
  "author": "Angelo Veltens",
42
42
  "license": "MIT",
43
43
  "devDependencies": {
44
- "@babel/preset-env": "^7.29.0",
44
+ "@babel/preset-env": "^7.29.5",
45
45
  "@babel/preset-typescript": "^7.28.5",
46
- "@eslint/js": "^9.39.2",
46
+ "@eslint/js": "^9.39.4",
47
47
  "@types/jest": "^30.0.0",
48
48
  "@types/jest-when": "^3.5.5",
49
49
  "@types/sparqljs": "^3.1.12",
50
- "esbuild": "^0.27.3",
51
- "eslint": "^9.39.3",
52
- "jest": "^30.2.0",
50
+ "esbuild": "^0.28.0",
51
+ "eslint": "^9.39.4",
52
+ "jest": "^30.3.0",
53
53
  "jest-when": "^3.7.0",
54
54
  "npm-run-all": "^4.1.5",
55
- "prettier": "^3.8.1",
55
+ "prettier": "^3.8.3",
56
56
  "rimraf": "^6.1.3",
57
57
  "sparqljs": "^3.7.4",
58
- "typedoc": "^0.28.17",
59
- "typedoc-plugin-markdown": "^4.10.0",
60
- "typescript": "5.9.3",
61
- "typescript-eslint": "^8.56.1"
58
+ "typedoc": "^0.28.19",
59
+ "typedoc-plugin-markdown": "^4.11.0",
60
+ "typescript": "^6.0.3",
61
+ "typescript-eslint": "^8.59.2"
62
62
  },
63
63
  "dependencies": {
64
64
  "@solid-data-modules/rdflib-utils": "^0.6.0",
@@ -68,9 +68,9 @@
68
68
  "mime": "^4.1.0",
69
69
  "neverthrow": "^8.2.0",
70
70
  "rdf-namespaces": "^1.16.0",
71
- "rdflib": "2.3.5",
71
+ "rdflib": "2.3.6",
72
72
  "rxjs": "^7.8.2",
73
- "slugify": "^1.6.6",
73
+ "slugify": "^1.6.9",
74
74
  "url": "^0.11.4",
75
75
  "url-template": "^3.1.1"
76
76
  },
package/types/Store.d.ts CHANGED
@@ -10,11 +10,11 @@ import { BlankNode, Quad, Quad_Graph, Quad_Object, Quad_Predicate, Quad_Subject,
10
10
  * It can be used to fetch additional data from the web and also update data and sync it back to editable resources.
11
11
  */
12
12
  export declare class Store {
13
- private readonly internalStore;
14
13
  private readonly fetcher;
15
14
  private readonly updater;
16
15
  additions$: Subject<Quad>;
17
16
  removals$: Subject<Quad>;
17
+ private readonly internalStore;
18
18
  constructor(session: PodOsSession, offlineCache?: OfflineCache, onlineStatus?: OnlineStatus, internalStore?: IndexedFormula);
19
19
  /**
20
20
  * Fetch data for the given URI to the internalStore
@@ -7,7 +7,7 @@ import { ResultAsync } from "neverthrow";
7
7
  * Handles HTTP operations for files, like fetching and updating file contents.
8
8
  */
9
9
  export declare class FileFetcher {
10
- private session;
10
+ private readonly session;
11
11
  constructor(session: PodOsSession);
12
12
  /**
13
13
  * Fetch the contents of the given file
@@ -1,6 +1,6 @@
1
1
  export declare class HttpStatus {
2
2
  readonly code: number;
3
- readonly text?: string | undefined;
4
- constructor(code: number, text?: string | undefined);
3
+ readonly text?: string;
4
+ constructor(code: number, text?: string);
5
5
  toString(): string;
6
6
  }
@@ -6,9 +6,6 @@ export interface ContainerContent {
6
6
  name: string;
7
7
  }
8
8
  export declare class LdpContainer extends Thing {
9
- readonly uri: string;
10
- readonly store: Store;
11
- readonly editable: boolean;
12
9
  constructor(uri: string, store: Store, editable?: boolean);
13
10
  /**
14
11
  * Resources that the LDP Container contains
@@ -4,10 +4,8 @@ import { Store } from "../Store";
4
4
  * Allows finding things related to the WebID and their profile document
5
5
  */
6
6
  export declare class WebIdProfile extends Thing {
7
+ private readonly profileQuery;
7
8
  readonly webId: string;
8
- readonly store: Store;
9
- readonly editable: boolean;
10
- private profileQuery;
11
9
  constructor(webId: string, store: Store, editable?: boolean);
12
10
  /**
13
11
  * Returns the URI of the preferences document
@@ -4,9 +4,6 @@ export interface Subject {
4
4
  uri: string;
5
5
  }
6
6
  export declare class RdfDocument extends Thing {
7
- readonly uri: string;
8
- readonly store: Store;
9
- readonly editable: boolean;
10
7
  constructor(uri: string, store: Store, editable?: boolean);
11
8
  subjects(): {
12
9
  uri: string;
@@ -5,9 +5,6 @@ import { Store } from "../Store";
5
5
  * https://github.com/pod-os/PodOS/blob/main/docs/features/full-text-search.md
6
6
  */
7
7
  export declare class LabelIndex extends RdfDocument {
8
- readonly uri: string;
9
- readonly store: Store;
10
- readonly editable: boolean;
11
8
  constructor(uri: string, store: Store, editable?: boolean);
12
9
  /**
13
10
  * Returns the URIs and labels for all the things listed in the document.
@@ -4,7 +4,7 @@ import { LabelIndex } from "./LabelIndex";
4
4
  import { Thing } from "../thing";
5
5
  import { SearchIndex } from "./SearchIndex";
6
6
  export declare class SearchGateway {
7
- private store;
7
+ private readonly store;
8
8
  constructor(store: Store);
9
9
  /**
10
10
  * Fetch the private label index for the given profile and build a search index from it
@@ -4,8 +4,8 @@ import { Index } from "lunr";
4
4
  * A fast, in-memory search index based on data from label indexes. Both labels and URIs are indexed.
5
5
  */
6
6
  export declare class SearchIndex {
7
- private labelIndexes;
8
7
  private index;
8
+ private readonly labelIndexes;
9
9
  constructor(labelIndexes: LabelIndex[]);
10
10
  /**
11
11
  * Recreates the search index with the current data from all label indexes
@@ -25,11 +25,7 @@ export declare class Thing {
25
25
  * Whether the Thing can be edited according to its access control settings
26
26
  */
27
27
  readonly editable: boolean;
28
- constructor(uri: string, store: Store,
29
- /**
30
- * Whether the Thing can be edited according to its access control settings
31
- */
32
- editable?: boolean);
28
+ constructor(uri: string, store: Store, editable?: boolean);
33
29
  /**
34
30
  * Returns a human-readable label for this thing. Tries to match common RDF terms
35
31
  * used for labels, such as `rdfs:label`, `schema:name` and others.
@@ -6,9 +6,6 @@ import { Store } from "../Store";
6
6
  * @since 0.24.0
7
7
  */
8
8
  export declare class TypeIndex extends Thing {
9
- readonly uri: string;
10
- readonly store: Store;
11
- readonly editable: boolean;
12
9
  constructor(uri: string, store: Store, editable?: boolean);
13
10
  listAll(): TypeRegistration[];
14
11
  }