@altnovatrail/contracts 0.18.13 → 0.18.15
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 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ const observation = fromJson(ObservationSchema, json);
|
|
|
12
12
|
const written = toJson(ObservationSchema, observation, { useProtoFieldName: true });
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
The code imports the runtime of protobuf-es, `@bufbuild/protobuf`, which the package depends on at the exact version of `protoc-gen-es` that wrote it. Take the runtime at that version too, or let npm install it with the package.
|
|
15
|
+
The code imports the runtime of protobuf-es, `@bufbuild/protobuf`, under Apache-2.0 and BSD-3-Clause, which the package depends on at the exact version of `protoc-gen-es` that wrote it. Take the runtime at that version too, or let npm install it with the package.
|
|
16
16
|
|
|
17
17
|
JSON of a contract names each field by its protobuf name, in snake case, as the files of `spec` do: whatever writes it passes `useProtoFieldName: true` to `toJson`. A reader takes both the protobuf name and the lowerCamelCase one, as `fromJson` does ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md), section 6). The package has no types of JSON: `protoc-gen-es` would spell them in lowerCamelCase.
|
|
18
18
|
|
|
@@ -59,7 +59,3 @@ gh release verify-asset v0.7.0 altnovatrail-contracts-0.7.0.tgz -R altnovatrail/
|
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
The release publishes that file to npm itself, by trusted publishing, and npm gives each version it publishes that way a provenance attestation. The provenance names `.github/workflows/release.yml` of `altnovatrail/spec` and the commit of the run that published it, which is the tip of `main` when the run began rather than always the commit the release was cut from. 0.7.0 was published by hand and has no provenance. A release whose run did not publish its version — one that came out before the release published this package, or one whose publish failed and was not run again — has none in npm, so take a tag whose version is there.
|
|
62
|
-
|
|
63
|
-
## License
|
|
64
|
-
|
|
65
|
-
[Apache-2.0](https://github.com/altnovatrail/spec/blob/main/LICENSE). The runtime, `@bufbuild/protobuf`, is under Apache-2.0 and BSD-3-Clause.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/contracts",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.15",
|
|
4
4
|
"description": "The code of NovaTrail's API contracts for TypeScript, which protoc-gen-es generates from their protobuf files: the messages and enums of each contract, with their descriptors, for @bufbuild/protobuf and Connect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|