@perkamo/sdk 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 -19
- package/README.md +6 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
# Changelog
|
|
1
|
+
# `@perkamo/sdk` Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.1 - 2026-06-02
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Changed
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
integrations.
|
|
9
|
-
- Added `createPerkamoClient` with `emit`, `batch`, `profile` and preview
|
|
10
|
-
`subscribeProfile` helpers.
|
|
11
|
-
- Added automatic tenant API key headers for server-side REST calls.
|
|
12
|
-
- Added automatic HMAC request signatures for mutating event ingestion calls.
|
|
13
|
-
- Added configurable `fetch` adapter and request timeout support.
|
|
14
|
-
- Re-exported shared public response and profile types from `@perkamo/sdk-core`.
|
|
15
|
-
|
|
16
|
-
### Security
|
|
17
|
-
|
|
18
|
-
- Signs mutating API requests with `x-perkamo-timestamp` and
|
|
19
|
-
`x-perkamo-signature`, binding the HTTP method, path and raw JSON body to the
|
|
20
|
-
server API key.
|
|
21
|
-
- Keeps tenant server API keys as backend-only configuration; browser/profile
|
|
22
|
-
stream support requires short-lived tokens and remains preview-labeled.
|
|
7
|
+
- Replace private repository documentation links in package READMEs with npm-safe usage guidance.
|
package/README.md
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Server-side JavaScript and TypeScript client for the Perkamo API.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Use this package from trusted backend code. Do not bundle server API keys into
|
|
6
|
+
browser, mobile, or embedded widget code.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @perkamo/sdk
|
|
10
|
+
```
|
|
7
11
|
|
|
8
12
|
## Quick Start
|
|
9
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perkamo/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Browser, Node.js and React Native compatible Perkamo client.",
|
|
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",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"format:check": "prettier --check src"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@perkamo/sdk-core": "0.1.
|
|
37
|
+
"@perkamo/sdk-core": "0.1.1"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"vitest": "4.1.7"
|