@effected/package-json 0.10.0 → 0.10.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.
- package/README.md +1 -1
- package/index.d.ts +8 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ The `workspace:` range modifier is honored: `workspace:*` takes the bare version
|
|
|
186
186
|
|
|
187
187
|
## Errors
|
|
188
188
|
|
|
189
|
-
Every failure is a `Schema.
|
|
189
|
+
Every failure is a `Schema.TaggedError` routed with `Effect.catchTag`. Causes are preserved structurally on a `Schema.Defect` field — a `PackageDecodeError` hands you the `SchemaError` issue tree, not `String(error)`.
|
|
190
190
|
|
|
191
191
|
| Tag | Means |
|
|
192
192
|
| --- | ----- |
|
package/index.d.ts
CHANGED
|
@@ -163,7 +163,10 @@ declare const PackageManager_base: Schema.Class<PackageManager, Schema.Struct<{
|
|
|
163
163
|
* `CorepackIntegrityHash`, the shared restriction of the `IntegrityHash`
|
|
164
164
|
* brand to the corepack `<algo>.<hex>` form.
|
|
165
165
|
*/
|
|
166
|
-
readonly integrity: Schema.Option<Schema.brand<Schema.String, "IntegrityHash"
|
|
166
|
+
readonly integrity: Schema.Option<Schema.brand<Schema.String, "IntegrityHash"> & {
|
|
167
|
+
FromSri: Schema.Codec<import("@effected/npm").IntegrityHashBrand, string, never, never>;
|
|
168
|
+
fromSri: (input: string) => Effect.Effect<import("@effected/npm").IntegrityHashBrand, import("@effected/npm").InvalidSriIntegrityHashError>;
|
|
169
|
+
}>;
|
|
167
170
|
}>, {}>;
|
|
168
171
|
/**
|
|
169
172
|
* A structured `packageManager` value with `name`, `version` and an optional
|
|
@@ -974,7 +977,10 @@ declare const PackageManagerRange_base: Schema.Class<PackageManagerRange, Schema
|
|
|
974
977
|
* an integrity pins one artifact — but carried whenever the manifest
|
|
975
978
|
* carries it, because fidelity outranks plausibility in a field model.
|
|
976
979
|
*/
|
|
977
|
-
readonly integrity: Schema.Option<Schema.brand<Schema.String, "IntegrityHash"
|
|
980
|
+
readonly integrity: Schema.Option<Schema.brand<Schema.String, "IntegrityHash"> & {
|
|
981
|
+
FromSri: Schema.Codec<import("@effected/npm").IntegrityHashBrand, string, never, never>;
|
|
982
|
+
fromSri: (input: string) => Effect.Effect<import("@effected/npm").IntegrityHashBrand, import("@effected/npm").InvalidSriIntegrityHashError>;
|
|
983
|
+
}>;
|
|
978
984
|
}>, {}>;
|
|
979
985
|
/**
|
|
980
986
|
* A structured `packageManager` value whose version position is a semver
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/package-json",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "package.json parsing, editing, validation and file IO as Effect schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@effected/jsonc": "^0.7.0",
|
|
42
|
-
"@effected/npm": "^0.
|
|
42
|
+
"@effected/npm": "^0.11.0",
|
|
43
43
|
"@effected/semver": "^0.5.0",
|
|
44
|
-
"@effected/spdx": "^0.
|
|
44
|
+
"@effected/spdx": "^0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"effect": "4.0.0-rc.109"
|