@taqueria/protocol 0.0.0-pr-659-420a2bbd → 0.0.0-pr-730-406498f7

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
@@ -1,25 +1,7 @@
1
1
  # Taqueria Protocol
2
2
 
3
- This package provides TypeScript "types" to both the Taqueria CLI and the Taqueria Node SDK.
3
+ Provides a shared collection of TypeScript types used in Taqueria
4
4
 
5
- This package is consumable in Node and Deno, and therefore care must
6
- be taken to assure that any changes made to the types do not depend
7
- solely on a Node or Deno API.
5
+ This package is consumed by `taqueria` itself, as well as `taqueria-sdk`
8
6
 
9
- Each type is validated using either of the following [Zod](https://github.com/colinhacks/zod#default) schemas:
10
- - An internal schema, which parses a typed structure from other typed structures
11
- - A raw schema, which parses a structure composed of primitive type
12
-
13
- Each type is represented as its own module, with the rawSchema and type exported, along with two factory methods: make() and create().
14
-
15
- To validate against the internal schema, use make(). To validate against the raw schema, use create().
16
-
17
- ## Tips
18
-
19
- Zod schemas expose a default() method. This doesn't work well when the optional() method is used as well. As such, please use the transform() method to set default values.
20
-
21
- E.g.
22
-
23
- Instead of this: `z.string().default('contracts').optional()`
24
-
25
- Use this: `z.string().optional().transform(val => val ?? 'contracts')`
7
+ This package can be consumed as an NPM package or included as a Deno module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/protocol",
3
- "version": "0.0.0-pr-659-420a2bbd",
3
+ "version": "0.0.0-pr-730-406498f7",
4
4
  "description": "A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,12 +30,5 @@
30
30
  "homepage": "https://github.com/ecadlabs/taqueria#readme",
31
31
  "devDependencies": {
32
32
  "typescript": "4.5.4"
33
- },
34
- "dependencies": {
35
- "@peculiar/webcrypto": "^1.4.0",
36
- "batching-toposort": "^1.2.0",
37
- "fluture": "^14.0.0",
38
- "remeda": "^0.0.32",
39
- "zod": "^3.16.0"
40
33
  }
41
34
  }