-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve tooling * allow shortcircuiting in channel topic * publish 0.0.1-alpha.4 * include index file in prod output * publish 0.0.1-alpha.5
- Loading branch information
Showing
18 changed files
with
7,048 additions
and
4,099 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
node_modules | ||
dist | ||
.DS_Store | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 0.0.1-alpha.5 | ||
|
||
2023-12-17 | ||
|
||
### Breaking changes | ||
* The typescript type for `useChannel`'s `PushEvent` now aligns with the rest of the types | ||
```jsx | ||
type PushEvent = { | ||
- type: string; | ||
+ event: string; | ||
|
||
- payload?: Record<string, any> | ||
+ data?: Record<string, any> | ||
} | ||
``` | ||
|
||
### Additional changes | ||
* Added rollup build tooling which should reduce bundle size slightly | ||
* Phoenix.js is now marked as a peer dependency | ||
* `useChannel` can now accept a short circuit operation to delay connecting to the channel until the condition is met. | ||
|
||
```jsx | ||
// Delay connecting until id is defined | ||
const [channel] = useChannel(id && `room:${id}`) | ||
``` | ||
* The `push` function type has been improved to catch more potential errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.