userplex 0.15.0 → 0.16.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.0 (2026-01-06)
4
+
5
+ Full Changelog: [v0.15.0...v0.16.0](https://github.com/dqnamo/userplex-typescript/compare/v0.15.0...v0.16.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([8bef724](https://github.com/dqnamo/userplex-typescript/commit/8bef7248a1e8fea460e725e230fc22ae08332c83))
10
+
3
11
  ## 0.15.0 (2026-01-06)
4
12
 
5
13
  Full Changelog: [v0.14.0...v0.15.0](https://github.com/dqnamo/userplex-typescript/compare/v0.14.0...v0.15.0)
package/README.md CHANGED
@@ -26,7 +26,7 @@ const client = new Userplex({
26
26
  apiKey: process.env['USERPLEX_API_KEY'], // This is the default and can be omitted
27
27
  });
28
28
 
29
- const response = await client.events.capture({ name: 'name' });
29
+ const response = await client.users.identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' });
30
30
 
31
31
  console.log(response.success);
32
32
  ```
@@ -43,7 +43,7 @@ const client = new Userplex({
43
43
  apiKey: process.env['USERPLEX_API_KEY'], // This is the default and can be omitted
44
44
  });
45
45
 
46
- const params: Userplex.EventCaptureParams = { name: 'name' };
46
+ const params: Userplex.EventCaptureParams = { name: 'REPLACE_ME' };
47
47
  const response: Userplex.EventCaptureResponse = await client.events.capture(params);
48
48
  ```
49
49
 
@@ -57,7 +57,7 @@ a subclass of `APIError` will be thrown:
57
57
 
58
58
  <!-- prettier-ignore -->
59
59
  ```ts
60
- const response = await client.events.capture({ name: 'name' }).catch(async (err) => {
60
+ const response = await client.events.capture({ name: 'REPLACE_ME' }).catch(async (err) => {
61
61
  if (err instanceof Userplex.APIError) {
62
62
  console.log(err.status); // 400
63
63
  console.log(err.name); // BadRequestError
@@ -97,7 +97,7 @@ const client = new Userplex({
97
97
  });
98
98
 
99
99
  // Or, configure per-request:
100
- await client.events.capture({ name: 'name' }, {
100
+ await client.events.capture({ name: 'REPLACE_ME' }, {
101
101
  maxRetries: 5,
102
102
  });
103
103
  ```
@@ -114,7 +114,7 @@ const client = new Userplex({
114
114
  });
115
115
 
116
116
  // Override per-request:
117
- await client.events.capture({ name: 'name' }, {
117
+ await client.events.capture({ name: 'REPLACE_ME' }, {
118
118
  timeout: 5 * 1000,
119
119
  });
120
120
  ```
@@ -137,11 +137,11 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
137
137
  ```ts
138
138
  const client = new Userplex();
139
139
 
140
- const response = await client.events.capture({ name: 'name' }).asResponse();
140
+ const response = await client.events.capture({ name: 'REPLACE_ME' }).asResponse();
141
141
  console.log(response.headers.get('X-My-Header'));
142
142
  console.log(response.statusText); // access the underlying Response object
143
143
 
144
- const { data: response, response: raw } = await client.events.capture({ name: 'name' }).withResponse();
144
+ const { data: response, response: raw } = await client.events.capture({ name: 'REPLACE_ME' }).withResponse();
145
145
  console.log(raw.headers.get('X-My-Header'));
146
146
  console.log(response.success);
147
147
  ```
@@ -223,7 +223,7 @@ parameter. This library doesn't validate at runtime that the request matches the
223
223
  send will be sent as-is.
224
224
 
225
225
  ```ts
226
- client.events.capture({
226
+ client.users.identify({
227
227
  // ...
228
228
  // @ts-expect-error baz is not yet public
229
229
  baz: 'undocumented option',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "userplex",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "The official TypeScript library for the Userplex API",
5
5
  "author": "Userplex <>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.15.0'; // x-release-please-version
1
+ export const VERSION = '0.16.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.15.0";
1
+ export declare const VERSION = "0.16.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.15.0";
1
+ export declare const VERSION = "0.16.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.15.0'; // x-release-please-version
4
+ exports.VERSION = '0.16.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.15.0'; // x-release-please-version
1
+ export const VERSION = '0.16.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map