@crud-api/metadata 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -36,7 +36,7 @@ The HTTP adapter (`@crud-api/http`) mirrors `_meta` in `ETag` and `Last-Modified
36
36
  - `metaHash(resource, codec?)`: the content hash of META_DOC_HASH. `contentOf` and `canonicalContent` give the content it is computed from; `crc32` and `base64url` are the two steps.
37
37
  - `METADATA_VERSION`: `"0.1.0"`.
38
38
 
39
- It reads the stored form of a Resource through the hook context (`stored`, D128) and the Client's patch through `beforeWrite`, both from `@crud-api/core` 0.3.0. The extension declares the error code `PRECONDITION_FAILED`, the Warning code `META_IGNORED` and the Parameter `ifMatch` (`patchById`, `patchByQuery`, `replaceById`, `replaceByQuery`, `deleteById`, `deleteByQuery`). Put it last in `extensions` when other extensions change Resources in `beforeWrite`, so the hash covers their changes.
39
+ It reads the stored form of a Resource through the hook context (`stored`, D128) and the Client's patch through `beforeWrite`, both from `@crud-api/core` 0.3.0. The extension declares the error code `PRECONDITION_FAILED`, the Warning code `META_IGNORED` and the Parameter `ifMatch` (`patchById`, `patchByQuery`, `replaceById`, `replaceByQuery`, `deleteById`, `deleteByQuery`). Put it last in `extensions` when other extensions change Resources in `beforeWrite` (such as `relationships()`, which drops the `data` of references), so the hash covers their changes.
40
40
 
41
41
  ## Behaviour
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crud-api/metadata",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Metadata extension of the CRUD API reference implementation: _meta with version, content hash, events, status and provenance, and conditional writes",
5
5
  "keywords": [
6
6
  "crud",
@@ -43,13 +43,13 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@crud-api/core": "^0.2.0"
46
+ "@crud-api/core": "^0.4.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@ecson/core": "^0.2.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@crud-api/memory": "^0.2.0",
52
+ "@crud-api/memory": "^0.4.0",
53
53
  "@unquery/core": "^0.2.0"
54
54
  }
55
55
  }