Skip to content

Commit

Permalink
Version Packages (#761)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 29, 2024
1 parent 7812a44 commit 119b08e
Show file tree
Hide file tree
Showing 36 changed files with 527 additions and 149 deletions.
82 changes: 0 additions & 82 deletions .changeset/chilled-books-behave.md

This file was deleted.

50 changes: 0 additions & 50 deletions .changeset/shiny-trainers-call.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/addon-indexeddb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pluv/addon-indexeddb

## 0.31.0

### Patch Changes

- @pluv/client@0.31.0
- @pluv/crdt@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/addon-indexeddb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/addon-indexeddb",
"version": "0.30.2",
"version": "0.31.0",
"description": "@pluv/io indexeddb for client storage persistence",
"author": "leedavidcs",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pluv

## 0.31.0

## 0.30.2

## 0.30.1
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pluv",
"version": "0.30.2",
"version": "0.31.0",
"description": "CLI for @pluv/io",
"author": "leedavidcs",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pluv/client

## 0.31.0

### Patch Changes

- @pluv/crdt@0.31.0
- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/client",
"version": "0.30.2",
"version": "0.31.0",
"description": "@pluv/io frontend client",
"author": "leedavidcs",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/crdt-loro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pluv/crdt-loro

## 0.31.0

### Patch Changes

- @pluv/crdt@0.31.0
- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/crdt-loro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/crdt-loro",
"version": "0.30.2",
"version": "0.31.0",
"description": "loro for @pluv/io",
"author": "leedavidcs",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/crdt-yjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @pluv/crdt-yjs

## 0.31.0

### Patch Changes

- @pluv/crdt@0.31.0
- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/crdt-yjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/crdt-yjs",
"version": "0.30.2",
"version": "0.31.0",
"description": "yjs for @pluv/io",
"author": "leedavidcs",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/crdt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @pluv/crdt

## 0.31.0

### Patch Changes

- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/crdt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/crdt",
"version": "0.30.2",
"version": "0.31.0",
"description": "crdt base for @pluv/io",
"author": "leedavidcs",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config-pluv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# eslint-config-pluv

## 0.31.0

## 0.30.2

## 0.30.1
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-pluv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-pluv",
"version": "0.30.2",
"version": "0.31.0",
"description": "@pluv/io eslint config",
"author": "leedavidcs",
"license": "MIT",
Expand Down
85 changes: 85 additions & 0 deletions packages/io/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,90 @@
# @pluv/io

## 0.31.0

### Minor Changes

- b3c31d7: **BREAKING**

Fixed platform context types. This will require additional properties when registering a websocket and creating authorization tokens. See example below:

```ts
// @pluv/platform-node example

import { platformNode } from "@pluv/platform-node";
import { createIO } from "@pluv/io";
import type { IncomingMessage } from "node:http";
import { z } from "zod";

const io = createIO({
// If using a function authorize parameter, `req` is now available as a param
authorize: ({ req }) => ({
required: true,
secret: "MY-CUSTOM-SECRET",
user: z.object({
id: z.string(),
}),
}),
platformNode(),
});

// Before
io.createToken({
room: "my-custom-room",
user: { id: "abc123" },
});

// After
io.createToken({
room: "my-custom-room",
user: { id: "abc123" },

// Previously not required, but now required
req: req as IncomingMessage,
});
```

```ts
// @pluv/platform-cloudflare example

import { platformCloudflare } from "@pluv/platform-cloudflare";
import { createIO } from "@pluv/io";
import { z } from "zod";

const io = createIO({
// If using a function authorize parameter, `env` and `request` are now available as params
authorize: ({ env, request }) => ({
required: true,
secret: "MY-CUSTOM-SECRET",
user: z.object({
id: z.string(),
}),
}),
platformCloudflare(),
});

// Before
io.createToken({
room: "my-custom-room",
user: { id: "abc123" },
});

// After
io.createToken({
room: "my-custom-room",
user: { id: "abc123" },

// Previously not required, but now required
env: env as Env,
request: request as Request,
});
```

### Patch Changes

- @pluv/crdt@0.31.0
- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/io/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/io",
"version": "0.30.2",
"version": "0.31.0",
"description": "@pluv/io server-side websocket manager",
"author": "leedavidcs",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @pluv/persistence-cloudflare-transactional-storage

## 0.31.0

### Patch Changes

- Updated dependencies [b3c31d7]
- @pluv/io@0.31.0
- @pluv/types@0.31.0

## 0.30.2

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pluv/persistence-cloudflare-transactional-storage",
"version": "0.30.2",
"version": "0.31.0",
"description": "@pluv/io crdt storage persistence for cloudflare via transactional storage",
"author": "leedavidcs",
"license": "MIT",
Expand Down
Loading

0 comments on commit 119b08e

Please sign in to comment.