@orangecheck/me-client 0.59.0 → 0.60.0
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 +25 -0
- package/README.md +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/integrator.js.map +1 -1
- package/dist/integrator.mjs.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,31 @@ this file tracks the package's TS / Node / runtime API surface.
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.60.0] — 2026-11-11
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- The `projectKey` comment says what holds while the sign-in rule can't be
|
|
18
|
+
read: the last one read stands for up to ten minutes, then signed-in
|
|
19
|
+
requests are refused until it can. The comment on the rule's own read gives
|
|
20
|
+
the price config's full cache age: ten minutes at the edge, then up to an
|
|
21
|
+
hour stale.
|
|
22
|
+
- The `user_share_pct` comment says me.ochk.io saves every event at the full
|
|
23
|
+
share of 0.8, which leaves no rebate, and that a rebate an event does carry
|
|
24
|
+
is never debited, so it stays in the project's balance.
|
|
25
|
+
- The `ComputedFees` comment says `site_rebate_sats` is what is left after the
|
|
26
|
+
platform fee and what the user earns, and that me.ochk.io never debits it.
|
|
27
|
+
- The `not_paying` comments and the README say no event is recorded or
|
|
28
|
+
charged. A call carrying the person's own token for your verified domain
|
|
29
|
+
still records that they use your project.
|
|
30
|
+
- `event.fire` no longer puts `metadata` in the request body.
|
|
31
|
+
|
|
32
|
+
### Deprecated
|
|
33
|
+
|
|
34
|
+
- `FireEventOptions.metadata`. me.ochk.io does not read it, so it is never
|
|
35
|
+
stored on the envelope or published. The option stays in the type so
|
|
36
|
+
existing callers still compile.
|
|
37
|
+
|
|
13
38
|
## [0.59.0] — 2026-11-10
|
|
14
39
|
|
|
15
40
|
### Added
|
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ It takes only the session object `verifyOcToken`, `checkOcToken`, `getOcSession`
|
|
|
119
119
|
|
|
120
120
|
## Pay your users, when you choose to
|
|
121
121
|
|
|
122
|
-
Paying the people who use your app is optional. In your project's dashboard you turn it on, schedule promos ("Launch week", Oct 20 to 27), or leave it off. While a pay period runs, each event you send earns the person their share and takes its fee from your balance. Outside every period an event earns and costs nothing, and me.ochk.io records
|
|
122
|
+
Paying the people who use your app is optional. In your project's dashboard you turn it on, schedule promos ("Launch week", Oct 20 to 27), or leave it off. While a pay period runs, each event you send earns the person their share and takes its fee from your balance. Outside every period an event earns and costs nothing, and me.ochk.io records no event, so you can fire events from code that runs all the time:
|
|
123
123
|
|
|
124
124
|
```ts
|
|
125
125
|
const res = await oc.event.fire({
|
package/dist/index.js
CHANGED
|
@@ -490,7 +490,6 @@ async function fire(options) {
|
|
|
490
490
|
if (options.payment_amount_sats !== void 0)
|
|
491
491
|
requestBody.payment_amount_sats = options.payment_amount_sats;
|
|
492
492
|
if (options.action_label !== void 0) requestBody.action_label = options.action_label;
|
|
493
|
-
if (options.metadata !== void 0) requestBody.metadata = options.metadata;
|
|
494
493
|
if (options.is_agent !== void 0) requestBody.is_agent = options.is_agent;
|
|
495
494
|
if (earner !== void 0) requestBody.user_address = earner;
|
|
496
495
|
const headers = {};
|