jsonldjs 0.1.2 → 0.2.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
3
+ Copyright (c) 2025 Interweb, Inc. <developers@interweb.co>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # `jsonldjs`
2
2
 
3
+ <p align="center">
4
+ <img src="https://raw.githubusercontent.com/hyperweb-io/dev-utils/refs/heads/main/docs/img/logo.svg" width="80">
5
+ <br />
6
+ JSON-LD Tooling
7
+ <br />
8
+ <a href="https://github.com/hyperweb-io/dev-utils/actions/workflows/ci.yml">
9
+ <img height="20" src="https://github.com/hyperweb-io/dev-utils/actions/workflows/ci.yml/badge.svg" />
10
+ </a>
11
+ <a href="https://github.com/hyperweb-io/dev-utils/blob/main/LICENSE-MIT">
12
+ <img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
13
+ </a>
14
+ </p>
15
+
3
16
  A powerful, generic JSON-LD builder with comprehensive entity and property filtering capabilities. Provides both immutable configuration building and mutable graph processing with a fluent interface.
4
17
 
5
18
  ## Installation
@@ -388,8 +401,8 @@ const result = createJsonLdBuilder()
388
401
  1. Clone the repository:
389
402
 
390
403
  ```bash
391
- git clone https://github.com/hyperweb-io/jsonld-tools.git
392
- cd jsonld-tools
404
+ git clone https://github.com/hyperweb-io/dev-utils.git
405
+ cd dev-utils/packages/jsonld-tools
393
406
  ```
394
407
 
395
408
  2. Install dependencies:
package/builder.js CHANGED
@@ -16,6 +16,7 @@ const builder_utils_1 = require("./builder-utils");
16
16
  * Mutable builder class that extends config builder with automatic method delegation
17
17
  */
18
18
  class JsonLdBuilder extends config_1.JsonLdConfigBuilder {
19
+ currentGraph;
19
20
  constructor(initialConfig = {}) {
20
21
  super(initialConfig);
21
22
  }
package/config.js CHANGED
@@ -14,6 +14,7 @@ const builder_utils_1 = require("./builder-utils");
14
14
  * Immutable configuration builder class
15
15
  */
16
16
  class JsonLdConfigBuilder {
17
+ config;
17
18
  constructor(initialConfig = {}) {
18
19
  this.config = { ...initialConfig };
19
20
  }
package/esm/builder.js CHANGED
@@ -12,6 +12,7 @@ import { applyPopulateConfig, buildPropertyFilterConfig, filterJsonLdGraph, vali
12
12
  * Mutable builder class that extends config builder with automatic method delegation
13
13
  */
14
14
  export class JsonLdBuilder extends JsonLdConfigBuilder {
15
+ currentGraph;
15
16
  constructor(initialConfig = {}) {
16
17
  super(initialConfig);
17
18
  }
package/esm/config.js CHANGED
@@ -10,6 +10,7 @@ import { mergeConfigs, mergeFilterOptions } from './builder-utils';
10
10
  * Immutable configuration builder class
11
11
  */
12
12
  export class JsonLdConfigBuilder {
13
+ config;
13
14
  constructor(initialConfig = {}) {
14
15
  this.config = { ...initialConfig };
15
16
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "jsonldjs",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "JSON-LD Tooling",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
- "homepage": "https://github.com/hyperweb-io/jsonldjs",
7
- "license": "SEE LICENSE IN LICENSE",
6
+ "homepage": "https://github.com/hyperweb-io/dev-utils",
7
+ "license": "MIT",
8
8
  "main": "index.js",
9
9
  "module": "esm/index.js",
10
10
  "types": "index.d.ts",
@@ -14,21 +14,22 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/hyperweb-io/jsonld-tools"
17
+ "url": "https://github.com/hyperweb-io/dev-utils"
18
18
  },
19
19
  "keywords": [
20
20
  "jsonld-tools"
21
21
  ],
22
- "bugs": {
23
- "url": "https://github.com/hyperweb-io/jsonld-tools/issues"
24
- },
25
22
  "scripts": {
26
- "copy": "copyfiles -f ../../LICENSE README.md package.json dist",
23
+ "copy": "cpy ../../LICENSE README.md package.json dist --flat",
27
24
  "clean": "rimraf dist",
25
+ "prepublishOnly": "pnpm run build",
28
26
  "build": "pnpm run clean && tsc && tsc -p tsconfig.esm.json && pnpm run copy",
29
- "build:dev": "pnpm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && pnpm run copy",
30
27
  "test": "jest",
31
28
  "test:watch": "jest --watch",
32
29
  "test:debug": "node --inspect node_modules/.bin/jest --runInBand"
33
- }
34
- }
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/hyperweb-io/dev-utils/issues"
33
+ },
34
+ "gitHead": "5cde04442ccb277b1a8c75eca19108b054d9ae08"
35
+ }