@dxos/keys 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/keys",
3
- "version": "0.8.4-main.bc674ce",
3
+ "version": "0.8.4-main.bcb3aa67d6",
4
4
  "description": "Key utils and definitions.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -30,17 +30,17 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "ulidx": "^2.3.0",
33
- "@dxos/debug": "0.8.4-main.bc674ce",
34
- "@dxos/node-std": "0.8.4-main.bc674ce",
35
- "@dxos/invariant": "0.8.4-main.bc674ce"
33
+ "@dxos/debug": "0.8.4-main.bcb3aa67d6",
34
+ "@dxos/invariant": "0.8.4-main.bcb3aa67d6",
35
+ "@dxos/node-std": "0.8.4-main.bcb3aa67d6"
36
36
  },
37
37
  "devDependencies": {
38
38
  "base32-decode": "^1.0.0",
39
39
  "base32-encode": "^2.0.0",
40
- "effect": "3.19.11"
40
+ "effect": "3.20.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "effect": "3.19.11"
43
+ "effect": "3.20.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
package/src/dxn.ts CHANGED
@@ -33,7 +33,7 @@ export type QueueSubspaceTag = (typeof QueueSubspaceTags)[keyof typeof QueueSubs
33
33
  // Consider: https://github.com/multiformats/multiaddr
34
34
  // dxn:echo:[<space-id>:[<queue-id>:]]<object-id>
35
35
  // dxn:echo:[S/<space-id>:[Q/<queue-id>:]]<object-id>
36
- // dxn:type:dxos.org/markdown/Contact
36
+ // dxn:type:org.dxos.markdown.contact
37
37
 
38
38
  /**
39
39
  * DXN unambiguously names a resource like an ECHO object, schema definition, plugin, etc.
@@ -47,8 +47,8 @@ export type QueueSubspaceTag = (typeof QueueSubspaceTags)[keyof typeof QueueSubs
47
47
  * dxn:echo:<space key>:<echo id>
48
48
  * dxn:echo:BA25QRC2FEWCSAMRP4RZL65LWJ7352CKE:01J00J9B45YHYSGZQTQMSKMGJ6
49
49
  * dxn:echo:@:01J00J9B45YHYSGZQTQMSKMGJ6
50
- * dxn:type:dxos.org/type/Calendar
51
- * dxn:plugin:dxos.org/agent/plugin/functions
50
+ * dxn:type:org.dxos.type.calendar
51
+ * dxn:plugin:org.dxos.agent.plugin.functions
52
52
  * ```
53
53
  */
54
54
  export class DXN {
@@ -61,7 +61,7 @@ export class DXN {
61
61
  Schema.annotations({
62
62
  title: 'DXN',
63
63
  description: 'DXN URI',
64
- examples: ['dxn:type:example.com/type/MyType', 'dxn:echo:@:01J00J9B45YHYSGZQTQMSKMGJ6'],
64
+ examples: ['dxn:type:com.example.type.my-type', 'dxn:echo:@:01J00J9B45YHYSGZQTQMSKMGJ6'],
65
65
  }),
66
66
  );
67
67
 
@@ -140,14 +140,14 @@ export class DXN {
140
140
  }
141
141
 
142
142
  /**
143
- * @example `dxn:type:example.com/type/Person`
143
+ * @example `dxn:type:com.example.type.person`
144
144
  */
145
145
  static fromTypename(typename: string): DXN {
146
146
  return new DXN(DXN.kind.TYPE, [typename]);
147
147
  }
148
148
 
149
149
  /**
150
- * @example `dxn:type:example.com/type/Person:0.1.0`
150
+ * @example `dxn:type:com.example.type.person:0.1.0`
151
151
  */
152
152
  // TODO(dmaretskyi): Consider using @ as the version separator.
153
153
  static fromTypenameAndVersion(typename: string, version: string): DXN {