The close/1 callback of Phoenix.LiveView.UploadWriter is now close/2 with the close reason passed as the second argument.
The write_chunk callback of Phoenix.LiveView.UploadWriter must now return the updated
writer state when an error occurs. Instead of {:error, reason}, return {:error, reason, new_state}.
Enhancements
Pass close reason to Phoenix.LiveView.UploadWriter close.
Dispatch phx:navigate window events when LiveView changes the history state
Bug fixes
Call Phoenix.LiveView.UploadWriter close callback when LiveView goes down or connection is lost
Fix JS.patch to a Phoenix router scope with :host causing errors
Fix immediate navigation after patch not updating URL
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps phoenix_live_view from 0.19.4 to 0.19.5.
Changelog
Sourced from phoenix_live_view's changelog.
Commits
fb11173
Release 0.19.5b1c5ed2
Support close reason in UploadWriter and call close on exit27c59a9
Update ci.yml (#2740)9f8dcdf
Store correct line number on AST89b896f
Bump changelogf907037
Bump build9f0e3ab
fix navigate callback running after patch (#2736)13a1752
Bump changelog32de2ae
Bump changeloge6be2ce
Expand JS.patch url. Closes #2665Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)