@owlmeans/static-resource 0.1.18-rc.32 → 0.1.18-rc.33

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/README.md CHANGED
@@ -12,7 +12,7 @@ In-memory `Resource<T>` backed by static config data — for read-only data load
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- bun add @owlmeans/static-resource@^0.1.18-rc.32
15
+ bun add @owlmeans/static-resource@^0.1.18-rc.33
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -63,7 +63,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
63
63
  your project's skill store (`.agents/skills/`):
64
64
 
65
65
  ```sh
66
- npx @owlmeans/agent-skills@^0.1.18-rc.35
66
+ npx @owlmeans/agent-skills@^0.1.18-rc.36
67
67
  ```
68
68
 
69
69
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/static-resource",
4
- "version": "0.1.18-rc.32",
5
- "generatedAt": "2026-09-22T21:57:18.840Z",
4
+ "version": "0.1.18-rc.33",
5
+ "generatedAt": "2026-09-22T22:22:19.451Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/static-resource
9
9
 
10
10
  **Layer:** Infra
11
- **Install:** `"@owlmeans/static-resource": "^0.1.18-rc.32"` in `dependencies`
11
+ **Install:** `"@owlmeans/static-resource": "^0.1.18-rc.33"` in `dependencies`
12
12
 
13
13
  The whole `Resource` contract over a `Map` held at module scope. Use it where records must be
14
14
  reachable through the context like any other resource but have no database behind them — fixtures,
@@ -40,9 +40,11 @@ await fixtures.list({ name: { $startsWith: 'Owl' } }, { sort: ['name'] })
40
40
 
41
41
  ## Semantics
42
42
 
43
- - The store is a map keyed by id and there is nothing here to mint one from, so **every write
44
- needs an id**: `create`, `update` and `save` all throw `MisshapedRecord('id')` without one.
45
- `create` additionally throws `RecordExists`, `update` `UnknownRecordError`; `save` is the upsert.
43
+ - The store is a map keyed by id. **`create` mints one (`randomUUID()`) when the record carries
44
+ none** — what a Mongo or Postgres `create()` does, so code written against those backends runs
45
+ unchanged over this one — and honours a supplied id, throwing `RecordExists` only when that id is
46
+ already stored. `update` and `save` need an id and throw `MisshapedRecord('id')` without one;
47
+ `update` also throws `UnknownRecordError`, and `save` is the upsert.
46
48
  - `load(id)` / `get(id)` / `delete(id)` / `take(id)` hit the map directly. `take(id)` **deletes**
47
49
  the record it returns and throws `UnknownRecordError` on a miss.
48
50
  - `load(where)`, `get(where)`, `list`, `count` and `purge` go through the shared in-memory engine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/static-resource",
3
- "version": "0.1.18-rc.32",
3
+ "version": "0.1.18-rc.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,9 +21,9 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/context": "^0.1.18-rc.31",
25
- "@owlmeans/error": "^0.1.18-rc.33",
26
- "@owlmeans/resource": "^0.1.18-rc.33"
24
+ "@owlmeans/context": "^0.1.18-rc.32",
25
+ "@owlmeans/error": "^0.1.18-rc.34",
26
+ "@owlmeans/resource": "^0.1.18-rc.34"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@owlmeans/dep-config": "workspace:*",