@perkamo/sdk-core 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,19 +1,13 @@
1
- # Changelog
1
+ # `@perkamo/sdk-core` Changelog
2
2
 
3
- ## 0.1.0 - 2026-06-02
3
+ ## 0.1.1 - 2026-06-02
4
4
 
5
- ### Added
5
+ ### Changed
6
6
 
7
- - Initial public SDK core package for shared Perkamo event and profile types.
8
- - Added `PerkamoApiError`, event ingest response types, batch response types,
9
- wallet delta types, profile state types, identify response types and reward
10
- redemption response types.
11
- - Added `canonicalJson` for stable JSON serialization of SDK payload facts.
12
- - Added `createTransactionId` for secure transaction ID generation.
13
- - Added `assertSafeEventInput` to validate required event fields and reject
14
- reserved context keys that Perkamo computes server-side.
7
+ - Replace private repository documentation links in package READMEs with npm-safe usage guidance.
15
8
 
16
- ### Security
9
+ ## 0.1.2 - 2026-06-02
17
10
 
18
- - Rejects client-authored computed fields such as `xp`, `wallet`, `wallets`,
19
- `rewards`, `level`, `perks` and `achievements` in event context.
11
+ ### Changed
12
+
13
+ - Browser CDN standalone build
package/README.md CHANGED
@@ -2,8 +2,15 @@
2
2
 
3
3
  Runtime-independent event types, response types, and helpers for Perkamo SDKs.
4
4
 
5
- See the full customer developer guide in
6
- [`../../docs/sdk-api.md`](../../docs/sdk-api.md).
5
+ Use this package for shared TypeScript types and input helpers. Most
6
+ integrations should install `@perkamo/sdk`, which re-exports these utilities and
7
+ adds the API client.
8
+
9
+ Full SDK documentation: https://www.perkamo.com/docs/v1/sdk
10
+
11
+ ```bash
12
+ npm install @perkamo/sdk-core
13
+ ```
7
14
 
8
15
  ## Exports
9
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perkamo/sdk-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Runtime-independent types and security helpers for Perkamo SDKs.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,7 +22,8 @@
22
22
  }
23
23
  },
24
24
  "publishConfig": {
25
- "access": "public"
25
+ "access": "public",
26
+ "provenance": true
26
27
  },
27
28
  "scripts": {
28
29
  "build": "tsc -p tsconfig.json",