@pluv/platform-cloudflare 0.19.0 → 0.20.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/platform-cloudflare@0.19.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
2
+ > @pluv/platform-cloudflare@0.20.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@ CLI tsup v8.1.0
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- CJS dist/index.js 6.86 KB
12
- CJS ⚡️ Build success in 91ms
13
11
  ESM dist/index.mjs 5.73 KB
14
- ESM ⚡️ Build success in 92ms
12
+ ESM ⚡️ Build success in 78ms
13
+ CJS dist/index.js 6.86 KB
14
+ CJS ⚡️ Build success in 79ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 2530ms
16
+ DTS ⚡️ Build success in 2841ms
17
17
  DTS dist/index.d.mts 3.02 KB
18
18
  DTS dist/index.d.ts 3.02 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @pluv/platform-cloudflare
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/io@0.20.0
8
+ - @pluv/types@0.20.0
9
+
3
10
  ## 0.19.0
4
11
 
5
12
  ### Patch Changes
package/README.md CHANGED
@@ -1,30 +1,3 @@
1
- > **Disclaimer:**
2
- > This package is currently in preview and may have breaking changes between versions. Please wait for a `v1.0.0` stable release before using this in production.
3
-
4
- <h1 align="center">
5
- <br />
6
- <img src="https://github.com/pluv-io/pluv/blob/master/assets/pluv-icon-192x192.png?raw=true" alt="Pluv.IO" width="180" style="border-radius:16px" />
7
- <br />
8
- <a href="https://pluv.io/docs/introduction">Pluv.IO (preview)</a>
9
- <br />
10
- </h1>
11
-
12
- <h3 align="center">Multi-platform, E2E type-safe realtime packages</h3>
13
- <h4 align="center">💕 Inspired by <a href="https://trpc.io">trpc</a> 💕 <a href="https://docs.yjs.dev/">yjs</a> 💕 and <a href="https://developers.cloudflare.com/">Cloudflare</a> 💕 </h4>
14
-
15
- <p align="center">
16
- <a href="https://www.npmjs.com/package/@pluv/platform-cloudflare">
17
- <img src="https://img.shields.io/npm/v/@pluv/platform-cloudflare" alt="npm @pluv/platform-cloudflare" />
18
- </a>
19
- <a href="https://github.com/pluv-io/pluv/blob/master/LICENSE">
20
- <img alt="GitHub" src="https://img.shields.io/github/license/pluv-io/pluv" alt="License MIT" />
21
- </a>
22
- <a href="https://commitizen.github.io/cz-cli/">
23
- <img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" />
24
- </a>
25
- <img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
26
- </p>
27
-
28
1
  ## `@pluv/platform-cloudflare`
29
2
 
30
3
  > Enables [@pluv/io](https://www.npmjs.com/package/@pluv/io) to run on [Cloudflare Workers](https://workers.cloudflare.com/).
@@ -43,26 +16,3 @@ yarn add @pluv/platform-cloudflare
43
16
  # pnpm
44
17
  pnpm add @pluv/platform-cloudflare
45
18
  ```
46
-
47
- ## Basic Example
48
-
49
- ```ts
50
- import { createIO } from "@pluv/io";
51
- import { platformCloudflare } from "@pluv/platform-cloudflare";
52
-
53
- export const io = createIO({ platform: platformCloudflare() });
54
- export const ioServer = io.server();
55
-
56
- /* Somewhere in a Cloudflare worker durable object */
57
- const { 0: client, 1: server } = new WebSocketPair();
58
-
59
- const room = ioServer.getRoom(state.id.toString(), { env });
60
-
61
- await room.register(server);
62
-
63
- return new Response(null, { status: 101, webSocket: client });
64
- ```
65
-
66
- ## Reference
67
-
68
- Check us out on [GitHub](https://github.com/pluv-io/pluv) for more information on how to use `@pluv/io`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-cloudflare",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "@pluv/io adapter for cloudflare workers",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "path-to-regexp": "^7.0.0",
21
- "@pluv/io": "^0.19.0",
22
- "@pluv/types": "^0.19.0"
21
+ "@pluv/io": "^0.20.0",
22
+ "@pluv/types": "^0.20.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@cloudflare/workers-types": "^4.20240620.0",
26
26
  "eslint": "^8.57.0",
27
27
  "tsup": "^8.1.0",
28
28
  "typescript": "^5.4.5",
29
- "@pluv/tsconfig": "^0.19.0",
30
- "eslint-config-pluv": "^0.19.0"
29
+ "@pluv/tsconfig": "^0.20.0",
30
+ "eslint-config-pluv": "^0.20.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsup src/index.ts --format esm,cjs --dts",