@pluv/platform-pluv 0.31.0 → 0.32.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-pluv@0.31.0 build /home/runner/work/pluv/pluv/packages/platform-pluv
2
+ > @pluv/platform-pluv@0.32.1 build /home/runner/work/pluv/pluv/packages/platform-pluv
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 3.65 KB
12
- ESM ⚡️ Build success in 72ms
13
- CJS dist/index.js 4.83 KB
14
- CJS ⚡️ Build success in 72ms
11
+ ESM dist/index.mjs 3.64 KB
12
+ ESM ⚡️ Build success in 79ms
13
+ CJS dist/index.js 4.82 KB
14
+ CJS ⚡️ Build success in 81ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6981ms
16
+ DTS ⚡️ Build success in 6419ms
17
17
  DTS dist/index.d.mts 2.29 KB
18
18
  DTS dist/index.d.ts 2.29 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @pluv/platform-pluv
2
2
 
3
+ ## 0.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7ae3df3: Update endpoint to generate authorization tokens.
8
+ - @pluv/crdt@0.32.1
9
+ - @pluv/io@0.32.1
10
+ - @pluv/types@0.32.1
11
+
12
+ ## 0.32.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [cde5305]
17
+ - @pluv/io@0.32.0
18
+ - @pluv/crdt@0.32.0
19
+ - @pluv/types@0.32.0
20
+
3
21
  ## 0.31.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ var PluvIO = class {
114
114
  return __async(this, null, function* () {
115
115
  var _a;
116
116
  const parsed = this._authorize.user.parse(params.user);
117
- const res = yield fetch("https://pluv.io/api/participant/authorize", {
117
+ const res = yield fetch("https://pluv.io/api/room/token", {
118
118
  method: "post",
119
119
  body: JSON.stringify({
120
120
  maxAge: (_a = params.maxAge) != null ? _a : null,
package/dist/index.mjs CHANGED
@@ -89,7 +89,7 @@ var PluvIO = class {
89
89
  return __async(this, null, function* () {
90
90
  var _a;
91
91
  const parsed = this._authorize.user.parse(params.user);
92
- const res = yield fetch("https://pluv.io/api/participant/authorize", {
92
+ const res = yield fetch("https://pluv.io/api/room/token", {
93
93
  method: "post",
94
94
  body: JSON.stringify({
95
95
  maxAge: (_a = params.maxAge) != null ? _a : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-pluv",
3
- "version": "0.31.0",
3
+ "version": "0.32.1",
4
4
  "description": "@pluv/io adapter for pluv.io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -20,16 +20,16 @@
20
20
  "@types/node": "^22.7.4",
21
21
  "hono": "^4.6.3",
22
22
  "zod": "^3.23.8",
23
- "@pluv/crdt": "^0.31.0",
24
- "@pluv/io": "^0.31.0",
25
- "@pluv/types": "^0.31.0"
23
+ "@pluv/crdt": "^0.32.1",
24
+ "@pluv/io": "^0.32.1",
25
+ "@pluv/types": "^0.32.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^8.57.0",
29
29
  "tsup": "^8.3.0",
30
30
  "typescript": "^5.6.2",
31
- "@pluv/tsconfig": "^0.31.0",
32
- "eslint-config-pluv": "^0.31.0"
31
+ "@pluv/tsconfig": "^0.32.1",
32
+ "eslint-config-pluv": "^0.32.1"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/PluvIO.ts CHANGED
@@ -89,7 +89,7 @@ export class PluvIO<TUser extends BaseUser> {
89
89
  public async createToken(params: JWTEncodeParams<TUser, PluvPlatform>): Promise<string> {
90
90
  const parsed = this._authorize.user.parse(params.user);
91
91
 
92
- const res = await fetch("https://pluv.io/api/participant/authorize", {
92
+ const res = await fetch("https://pluv.io/api/room/token", {
93
93
  method: "post",
94
94
  body: JSON.stringify({
95
95
  maxAge: params.maxAge ?? null,