Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MithrilJS/mithril.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.12
Choose a base ref
...
head repository: MithrilJS/mithril.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.13
Choose a head ref
  • 8 commits
  • 9 files changed
  • 5 contributors

Commits on Jan 23, 2025

  1. Bump glob from 11.0.0 to 11.0.1 in the normal group

    Bumps the normal group with 1 update: [glob](https://github.com/isaacs/node-glob).
    
    
    Updates `glob` from 11.0.0 to 11.0.1
    - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
    - [Commits](isaacs/node-glob@v11.0.0...v11.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: glob
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: normal
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and dead-claudia committed Jan 23, 2025
    Copy the full SHA
    e71b61a View commit details

Commits on Jan 26, 2025

  1. Copy the full SHA
    aa3f1b5 View commit details
  2. add comment

    kfule authored and dead-claudia committed Jan 26, 2025
    Copy the full SHA
    481a318 View commit details
  3. [refactor] inline isFileInput

    kfule authored and dead-claudia committed Jan 26, 2025
    Copy the full SHA
    e886388 View commit details
  4. fix comment

    kfule authored and dead-claudia committed Jan 26, 2025
    Copy the full SHA
    f2d6dc8 View commit details
  5. add manual rendering tests

    kfule authored and dead-claudia committed Jan 26, 2025
    Copy the full SHA
    98fa50a View commit details
  6. Update render.js

    Signed-off-by: Claudia Meadows <contact@claudiameadows.dev>
    dead-claudia committed Jan 26, 2025
    Copy the full SHA
    6387ff6 View commit details
  7. Release Artifacts for v2.2.13

     [skip ci]
    JAForbes committed Jan 26, 2025
    Copy the full SHA
    e57011c View commit details
Showing with 126 additions and 18 deletions.
  1. +1 −1 README.md
  2. +11 −0 docs/recent-changes.md
  3. +3 −3 mithril.js
  4. +1 −1 mithril.min.js
  5. +8 −9 package-lock.json
  6. +1 −1 package.json
  7. +3 −3 render/render.js
  8. +49 −0 render/tests/manual/minlength-input.html
  9. +49 −0 render/tests/manual/minlength-textarea.html
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@

## What is Mithril.js?

A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.03 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.01 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.

Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.

11 changes: 11 additions & 0 deletions docs/recent-changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

# Release v2.2.13

### Patch Changes

#### [Fix form checkValidity(), remove vnode.dom === .activeElement from setAttr() (Continued from #2257) (@kfule)](https://github.com/MithrilJS/mithril.js/pull/3002)

Remove vnode.dom === activeElement(vnode.dom) from setAttribute() to fix validityCheck(), to fix https://github.com/MithrilJS/mithril.js/issues/2256.
#### [Bump glob from 11.0.0 to 11.0.1 in the normal group (@dependabot[bot])](https://github.com/MithrilJS/mithril.js/pull/3001)

Bumps the normal group with 1 update: [glob](https://github.com/isaacs/node-glob). Updates `glob` from 11.0.0 to 11.0.1. Commits. 148ef61 11.0.1.

# Release v2.2.12

### Patch Changes
6 changes: 3 additions & 3 deletions mithril.js
Original file line number Diff line number Diff line change
@@ -829,17 +829,17 @@ var _11 = function() {
if (key === "value") {
// Only do the coercion if we're actually going to check the value.
/* eslint-disable no-implicit-coercion */
var isFileInput = vnode3.tag === "input" && vnode3.attrs.type === "file"
//setting input[value] to same value by typing on focused element moves cursor to end in Chrome
//setting input[type0=file][value] to same value causes an error to be generated if it's non-empty
if ((vnode3.tag === "input" || vnode3.tag === "textarea") && vnode3.dom.value === "" + value && (isFileInput || vnode3.dom === activeElement(vnode3.dom))) return
//minlength/maxlength validation isn't performed on script-set values(#2256)
if ((vnode3.tag === "input" || vnode3.tag === "textarea") && vnode3.dom.value === "" + value) return
//setting select[value] to same value while having select open blinks select dropdown in Chrome
if (vnode3.tag === "select" && old !== null && vnode3.dom.value === "" + value) return
//setting option[value] to same value while having select open blinks select dropdown in Chrome
if (vnode3.tag === "option" && old !== null && vnode3.dom.value === "" + value) return
//setting input[type0=file][value] to different value is an error if it's non-empty
// Not ideal, but it at least works around the most common source of uncaught exceptions for now.
if (isFileInput && "" + value !== "") { console.error("`value` is read-only on file inputs!"); return }
if (vnode3.tag === "input" && vnode3.attrs.type === "file" && "" + value !== "") { console.error("`value` is read-only on file inputs!"); return }
/* eslint-enable no-implicit-coercion */
}
// If you assign an input type0 that is not supported by IE 11 with an assignment expression, an error will occur.
Loading