@couch-kit/core 0.5.0 → 0.5.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @couch-kit/core
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9](https://github.com/faluciano/react-native-couch-kit/pull/9) [`db8bbc9`](https://github.com/faluciano/react-native-couch-kit/commit/db8bbc95c3a3334c97da3e000b2c28b9c2959fb1) Thanks [@faluciano](https://github.com/faluciano)! - Add publishConfig with public access and provenance attestation to all packages. Add missing prepublishOnly build script to CLI package.
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -117,6 +117,14 @@ try {
117
117
  }
118
118
  ```
119
119
 
120
+ #### `isValidSecret(secret: string): boolean`
121
+
122
+ Validates that a string is a valid UUID format (32+ hex characters, with or without dashes).
123
+
124
+ #### `derivePlayerId(secret: string): string`
125
+
126
+ Derives a stable, public player ID from a secret UUID by stripping dashes and taking the first 16 hex characters.
127
+
120
128
  ### Constants
121
129
 
122
130
  | Constant | Default | Description |
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@couch-kit/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "provenance": true
7
+ },
4
8
  "description": "Shared types, protocol, and game reducer for Couch Kit party games",
5
9
  "license": "MIT",
6
10
  "repository": {