Skip to content

Commit

Permalink
Release 0.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jan 2, 2024
1 parent eead2f1 commit 8a30144
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 48 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Changelog

## 0.20.3
## 0.20.3 (2024-01-02)

### Bug fixes
* Fix phx-viewport bindings failing to fire after navigation
* Preserve order of appended items in stream in `LiveViewTest`
* Fix order of items on client when resetting a stream to existing set of items

### Enhancements
* Support `JS.push` from dead views
Expand Down
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ export default class View {
}

dispatchUploads(targetCtx, name, filesOrBlobs){
let targetElement = this.targetCtxElement(targetCtx) || this.el;
let targetElement = this.targetCtxElement(targetCtx) || this.el
let inputs = DOM.findUploadInputs(targetElement).filter(el => el.name === name)
if(inputs.length === 0){ logError(`no live file inputs found matching the name "${name}"`) }
else if(inputs.length > 1){ logError(`duplicate live file inputs found matching the name "${name}"`) }
Expand Down
4 changes: 2 additions & 2 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix_live_view",
"version": "0.20.2",
"version": "0.20.3",
"description": "The Phoenix LiveView JavaScript client.",
"license": "MIT",
"repository": {},
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Phoenix.LiveView.MixProject do
use Mix.Project

@version "0.20.2"
@version "0.20.3"

def project do
[
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phoenix_live_view",
"version": "0.20.2",
"version": "0.20.3",
"description": "The Phoenix LiveView JavaScript client.",
"license": "MIT",
"module": "./priv/static/phoenix_live_view.esm.js",
Expand Down
14 changes: 3 additions & 11 deletions priv/static/phoenix_live_view.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/phoenix_live_view.cjs.js.map

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions priv/static/phoenix_live_view.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions priv/static/phoenix_live_view.esm.js.map

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions priv/static/phoenix_live_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1907,17 +1907,9 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
Array.from(fromEl.children).filter((child) => {
let { resetKept } = this.getStreamInsert(child);
return resetKept;
}).sort((a, b) => {
let aIdx = toIds.indexOf(a.id);
let bIdx = toIds.indexOf(b.id);
if (aIdx === bIdx) {
return 0;
} else if (aIdx < bIdx) {
return -1;
} else {
return 1;
}
}).forEach((child) => fromEl.appendChild(child));
}).forEach((child) => {
this.streamInserts[child.id].streamAt = toIds.indexOf(child.id);
});
}
},
onNodeDiscarded: (el) => this.onNodeDiscarded(el),
Expand Down
8 changes: 4 additions & 4 deletions priv/static/phoenix_live_view.min.js

Large diffs are not rendered by default.

0 comments on commit 8a30144

Please sign in to comment.