obix-adapter-data 0.5.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/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog — obix-adapter-data
2
+
3
+ The history of `obix-adapter-data`. The lineage in full is `PROVENANCE.json`, in this package and in its repository ([https://github.com/obinexus/obix-adapter-data](https://github.com/obinexus/obix-adapter-data)).
4
+
5
+ ## 0.5.0
6
+
7
+ - Named `obix-adapter-data` without an npm scope (the owner's decision D-102, 2026-09-29). Previous name: `@obinexusltd/obix-adapter-data`. The package, its version and its exports did not change with the name.
8
+ - Repository, issues and homepage: [github.com/obinexus/obix-adapter-data](https://github.com/obinexus/obix-adapter-data); the repository starts from a clean export of the OBIX monorepo (its commit is recorded in the repository's copy of PROVENANCE.json).
9
+ - A compatibility package: every export is the export of [`obix-core-data`](https://github.com/obinexus/obix-core-data) under the old name (published 0.3.0 (DOP-native adapter)).
10
+
11
+ ## Before this repository
12
+
13
+ Provenance: where the package came from. Its current repository is [github.com/obinexus/obix-adapter-data](https://github.com/obinexus/obix-adapter-data).
14
+
15
+ - Previous name `@obinexusltd/obix-adapter-data`: published to npm as `@obinexusltd/obix-adapter-data@0.3.0`.
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) OBINexus Computing — Nnamdi Michael Okpala
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ {
2
+ "package": "obix-adapter-data",
3
+ "dir": "core/obix-adapter-data",
4
+ "importedBy": "scripts/recovery/generate-shims.mjs",
5
+ "stage": "stage-7 compat shim (authored-in-recovery; no upstream code)",
6
+ "replaces": {
7
+ "name": "@obinexusltd/obix-adapter-data",
8
+ "source": "npm:@obinexusltd/obix-adapter-data@0.3.0",
9
+ "integrity": "sha512-JkQuk+LCPRqRd5M1/apxMaSxJuFHXfIzgoilLFunF+BhlFAu3nobH231OU5bas8roTv5+GV25gCTe1MqoAPZUw=="
10
+ },
11
+ "owner": "obix-core-data",
12
+ "surface": "docs/recovery/shim-surface.json",
13
+ "decision": "rename (docs/recovery/migration-table.md; obix-naming.json legacyShims, kind published)",
14
+ "entries": {
15
+ ".": {
16
+ "values": 4,
17
+ "types": 0,
18
+ "removed": [
19
+ "replay"
20
+ ],
21
+ "missingTypes": [
22
+ "ActionContext",
23
+ "ActionFn",
24
+ "ActionTrace",
25
+ "DOPComponent",
26
+ "EffectDescriptor",
27
+ "RenderView",
28
+ "ValidationResult"
29
+ ]
30
+ }
31
+ },
32
+ "localFixes": [],
33
+ "renamedFrom": [
34
+ {
35
+ "name": "@obinexusltd/obix-adapter-data",
36
+ "dir": "core/obix-adapter-data",
37
+ "stage": "unscoped-naming",
38
+ "why": "D-102 (2026-09-29): OBIX packages are named without an npm scope — previous name @obinexusltd/obix-adapter-data, current name obix-adapter-data (docs/recovery/unscoped-migration.md); the directory, version and exports are unchanged"
39
+ }
40
+ ]
41
+ }
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # obix-adapter-data
2
+
3
+ > Previous name: `@obinexusltd/obix-adapter-data` — OBIX packages are named without an npm scope since decision D-102 (2026-09-29); the package, its version and its exports are unchanged.
4
+
5
+ > **Compatibility package.** `obix-adapter-data` is kept so that code and documents that import it keep resolving. It contains **no logic**: every export below is the export of [`obix-core-data`](https://github.com/obinexus/obix-core-data) under the old name. New code should import from `obix-core-data`.
6
+
7
+ Old package: npm:obix-adapter-data@0.3.0. Decision: `rename` (published name; listed in `obix-naming.json` (OBIX monorepo record) `legacyShims`) in `docs/recovery/migration-table.md` (OBIX monorepo record) — PUBLISHED 0.3.0 → the adapter family migrates into core (adapter-* → core-*, no name collision for data: see the core-* rows). The published name stays as a compat shim keeping the published exports. NOTE: any `replay` export is NOT carried into the owner (D-14)..
8
+
9
+ ## `obix-adapter-data`
10
+
11
+ | Old name | Is |
12
+ |---|---|
13
+ | `apply` | `obix-core-data`.`dataApply` |
14
+ | `render` | `obix-core-data`.`dataRender` |
15
+ | `toData` | `obix-core-data`.`toData` |
16
+ | `validate` | `obix-core-data`.`dataValidate` |
17
+
18
+ **Not carried over (deliberate):**
19
+
20
+ - `replay` — D-14: no `replay` in the OBIX API (the brief)
21
+
22
+ **Types the old package exported that the owner does not have** (TypeScript consumers importing them must switch): `ActionContext`, `ActionFn`, `ActionTrace`, `DOPComponent`, `EffectDescriptor`, `RenderView`, `ValidationResult`.
23
+
24
+ ## Verification
25
+
26
+ `test/shim.test.mjs` imports both packages and asserts, for every entry point: each old name is **identical** (`===`) to the owner's export (or, for the derived `renderX`, behaves as `renderWith(createX)`); the shim exports exactly these names and nothing else; every excluded name is absent. Verified on Node 26.7 only.
27
+
28
+ <!-- obix-release:begin — generated by scripts/release/prepare.mjs; edit the text above this line -->
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ npm install obix-adapter-data
34
+ ```
35
+
36
+ ## Basic usage
37
+
38
+ ```js
39
+ // existing code keeps working under the old name…
40
+ import { apply, render, toData } from 'obix-adapter-data';
41
+ // …new code imports the owner: obix-core-data
42
+ ```
43
+
44
+ ## API surface
45
+
46
+ - `obix-adapter-data` — 4 value exports: `apply`, `render`, `toData`, `validate`
47
+ - Type declarations: `./dist/index.d.ts` (and a declaration next to every JS entry point).
48
+
49
+ ## Architecture role
50
+
51
+ `obix-adapter-data` is a **compatibility package**: it keeps an old name resolving and contains no logic — every export is the export of [`obix-core-data`](https://github.com/obinexus/obix-core-data). New code imports from `obix-core-data` (or from the umbrella `obix`).
52
+
53
+ The architecture of OBIX — the package families and which packages are public API — is indexed in the umbrella: [docs/architecture.md](https://github.com/obinexus/obix/blob/main/docs/architecture.md).
54
+
55
+ ## Package relationships
56
+
57
+ - Depends on (OBIX): [`obix-core-data`](https://github.com/obinexus/obix-core-data).
58
+ - Used by (OBIX): no other OBIX package.
59
+
60
+ ## Testing
61
+
62
+ - 1 test file ships in the npm package (`test/`): the evidence of the package's contract, published so that its verification can be inspected — not runtime code (no entry point reaches it).
63
+ - **Standalone**: 1 of 1 — it reads nothing outside the package.
64
+ - Run them with `npm test` (`node --test "test/*.test.mjs"`) in the OBIX monorepo, which provides the test tooling (Node's test runner, TypeScript) and the harness.
65
+
66
+ ## Documentation
67
+
68
+ - [CHANGELOG.md](CHANGELOG.md)
69
+ - The OBIX architecture index: [obix/docs/architecture.md](https://github.com/obinexus/obix/blob/main/docs/architecture.md)
70
+
71
+ ## Repository
72
+
73
+ - https://github.com/obinexus/obix-adapter-data — `git@github.com:obinexus/obix-adapter-data.git`
74
+ - Issues: https://github.com/obinexus/obix-adapter-data/issues
75
+ - The repository is a clean export of the package from the OBIX monorepo. Its lineage — the sources it was recovered from and its earlier names — is `PROVENANCE.json`, shipped in this package; the repository's copy also records the monorepo commit it was exported from.
76
+
77
+ ## License
78
+
79
+ MIT — see [LICENSE](LICENSE).
80
+
81
+ <!-- obix-release:end -->
@@ -0,0 +1,2 @@
1
+ export { dataApply as apply, dataRender as render, dataValidate as validate, toData } from "obix-core-data";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,UAAU,IAAI,MAAM,EAAE,YAAY,IAAI,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { dataApply as apply, dataRender as render, dataValidate as validate, toData } from "obix-core-data";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,KAAK,EAAE,UAAU,IAAI,MAAM,EAAE,YAAY,IAAI,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "obix-adapter-data",
3
+ "version": "0.5.0",
4
+ "description": "Compatibility name: obix-adapter-data now resolves to obix-core-data. Contains no logic of its own — import from obix-core-data in new code.",
5
+ "license": "MIT",
6
+ "author": "OBINexus Computing — Nnamdi Michael Okpala <okpalan@protonmail.com>",
7
+ "type": "module",
8
+ "sideEffects": false,
9
+ "main": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "src",
21
+ "README.md",
22
+ "LICENSE",
23
+ "test",
24
+ "CHANGELOG.md",
25
+ "PROVENANCE.json"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsc -p tsconfig.json",
29
+ "typecheck": "tsc -p tsconfig.json --noEmit",
30
+ "test": "node --test \"test/*.test.mjs\""
31
+ },
32
+ "dependencies": {
33
+ "obix-core-data": "0.5.0"
34
+ },
35
+ "keywords": [
36
+ "obix",
37
+ "compat"
38
+ ],
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "engines": {
43
+ "node": ">=22.12.0"
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "git+https://github.com/obinexus/obix-adapter-data.git"
48
+ },
49
+ "bugs": {
50
+ "url": "https://github.com/obinexus/obix-adapter-data/issues"
51
+ },
52
+ "homepage": "https://github.com/obinexus/obix-adapter-data#readme",
53
+ "obix": {
54
+ "shimOf": "obix-core-data",
55
+ "replaces": "obix-adapter-data"
56
+ }
57
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Generated by scripts/recovery/generate-shims.mjs — a compat shim: no logic, only the owner's exports under the old names.
2
+ export { dataApply as apply, dataRender as render, dataValidate as validate, toData } from "obix-core-data";
@@ -0,0 +1,14 @@
1
+ // Generated by scripts/recovery/generate-shims.mjs. A compat shim is correct when every old name IS the owner's export.
2
+ import test from "node:test";
3
+ import assert from "node:assert/strict";
4
+ import * as shim0 from "../dist/index.js";
5
+ import * as owner0 from "obix-core-data";
6
+
7
+ test("obix-adapter-data: every old name is the owner's export, and nothing else is exported", () => {
8
+ assert.equal(shim0["apply"], owner0["dataApply"], "apply");
9
+ assert.equal(shim0["render"], owner0["dataRender"], "render");
10
+ assert.equal(shim0["toData"], owner0["toData"], "toData");
11
+ assert.equal(shim0["validate"], owner0["dataValidate"], "validate");
12
+ assert.deepEqual(Object.keys(shim0).sort(), ["apply","render","toData","validate"]);
13
+ assert.equal("replay" in shim0, false, "replay is deliberately not carried over");
14
+ });