@perkamo/sdk-core 0.1.0 → 0.1.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 +4 -16
- package/README.md +7 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
# Changelog
|
|
1
|
+
# `@perkamo/sdk-core` Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.1 - 2026-06-02
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Changed
|
|
6
6
|
|
|
7
|
-
-
|
|
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.
|
|
15
|
-
|
|
16
|
-
### Security
|
|
17
|
-
|
|
18
|
-
- Rejects client-authored computed fields such as `xp`, `wallet`, `wallets`,
|
|
19
|
-
`rewards`, `level`, `perks` and `achievements` in event context.
|
|
7
|
+
- Replace private repository documentation links in package READMEs with npm-safe usage guidance.
|
package/README.md
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Runtime-independent event types, response types, and helpers for Perkamo SDKs.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
```bash
|
|
10
|
+
npm install @perkamo/sdk-core
|
|
11
|
+
```
|
|
7
12
|
|
|
8
13
|
## Exports
|
|
9
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perkamo/sdk-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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",
|