UNPKG

@aurelia/validation-html

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) [![CircleCI](https://circleci.com/

534 lines (330 loc) • 20.2 kB
# Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. <a name="2.0.0-beta.25"></a> # 2.0.0-beta.25 (2025-07-10) ### Refactorings: * ***:** async timing for computed observers (#2188) ([f874ccc](https://github.com/aurelia/aurelia/commit/f874ccc)) <a name="2.0.0-beta.24"></a> # 2.0.0-beta.24 (2025-04-27) ### Bug Fixes: * **validation:** release reference to binding behavior source (#2143) ([78d0229](https://github.com/aurelia/aurelia/commit/78d0229)) * **validation:** invalidate property info cache when source changes (#2138) ([a0b9ae6](https://github.com/aurelia/aurelia/commit/a0b9ae6)) * **validation:** invalidate property info cache when source changes ([a0b9ae6](https://github.com/aurelia/aurelia/commit/a0b9ae6)) <a name="2.0.0-beta.23"></a> # 2.0.0-beta.23 (2025-01-26) ### Features: * **tooling:** type-checking for templates - Phase1 (#2066) ([ebc1d0c](https://github.com/aurelia/aurelia/commit/ebc1d0c)) ### Bug Fixes: * **validation:** removed bindings on unbind (#2082) ([8ecffbe](https://github.com/aurelia/aurelia/commit/8ecffbe)) * **validation:** removed bindings on unbind ([8ecffbe](https://github.com/aurelia/aurelia/commit/8ecffbe)) <a name="2.0.0-beta.22"></a> # 2.0.0-beta.22 (2024-09-30) ### Bug Fixes: * **ast:** correct null/undefined handling (#2055) ([b96d7c4](https://github.com/aurelia/aurelia/commit/b96d7c4)) * **validation-html:** reset binding while unbinding BB (#2027) ([a3b1d09](https://github.com/aurelia/aurelia/commit/a3b1d09)) ### Refactorings: * **ast:** separate & allow binding behavior and value converter evaluation to be optional (#2058) ([7d7e21b](https://github.com/aurelia/aurelia/commit/7d7e21b)) <a name="2.0.0-beta.21"></a> # 2.0.0-beta.21 (2024-08-08) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.20"></a> # 2.0.0-beta.20 (2024-07-07) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.19"></a> # 2.0.0-beta.19 (2024-06-12) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.18"></a> # 2.0.0-beta.18 (2024-05-23) ### Refactorings: * ***:** extract error codes and cleanup (#1974) ([63ffdc9](https://github.com/aurelia/aurelia/commit/63ffdc9)) * **i18n-validation:** replace errors with error codes (#1972) ([f91f31c](https://github.com/aurelia/aurelia/commit/f91f31c)) * **dom-queue:** merge dom read and write queues (#1970) ([3a63cde](https://github.com/aurelia/aurelia/commit/3a63cde)) <a name="2.0.0-beta.17"></a> # 2.0.0-beta.17 (2024-05-11) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.16"></a> # 2.0.0-beta.16 (2024-05-03) ### Refactorings: * ***:** move scope to runtime html (#1945) ([bca0290](https://github.com/aurelia/aurelia/commit/bca0290)) <a name="2.0.0-beta.15"></a> # 2.0.0-beta.15 (2024-04-17) ### Bug Fixes: * ***:** residual decorator work (#1942) ([7e8c12f](https://github.com/aurelia/aurelia/commit/7e8c12f)) ### Refactorings: * **bindings:** move binding infra to runtime html (#1944) ([1c7608a](https://github.com/aurelia/aurelia/commit/1c7608a)) * **expression-parser:** move exp parser to its own package (#1943) ([6e7dcad](https://github.com/aurelia/aurelia/commit/6e7dcad)) * ***:** migration to TC39 decorators + metadata simplification (#1932) ([22f90ad](https://github.com/aurelia/aurelia/commit/22f90ad)) <a name="2.0.0-beta.14"></a> # 2.0.0-beta.14 (2024-04-03) ### Features: * **i18n:** support multiple versions of i18next (#1927) ([0789ee5](https://github.com/aurelia/aurelia/commit/0789ee5)) <a name="2.0.0-beta.13"></a> # 2.0.0-beta.13 (2024-03-15) ### Bug Fixes: * **router:** dont swallow instantiation error details ([deee8e6](https://github.com/aurelia/aurelia/commit/deee8e6)) * ***:** cleanup di & router tests, add timeout ([deee8e6](https://github.com/aurelia/aurelia/commit/deee8e6)) * ***:** router errors stringify ([deee8e6](https://github.com/aurelia/aurelia/commit/deee8e6)) * ***:** deepscan issues ([deee8e6](https://github.com/aurelia/aurelia/commit/deee8e6)) ### Refactorings: * ***:** smaller di files, assert text options, more au slot tests ([deee8e6](https://github.com/aurelia/aurelia/commit/deee8e6)) <a name="2.0.0-beta.12"></a> # 2.0.0-beta.12 (2024-03-02) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.11"></a> # 2.0.0-beta.11 (2024-02-13) ### Features: * **state:** support redux devtools for the state plugin (#1888) ([bd07160](https://github.com/aurelia/aurelia/commit/bd07160)) ### Bug Fixes: * ***:** upgrade rollup, tweak build scripts ([bd07160](https://github.com/aurelia/aurelia/commit/bd07160)) <a name="2.0.0-beta.10"></a> # 2.0.0-beta.10 (2024-01-26) ### Bug Fixes: * **validation:** evaluation of tagged rules from bindings (#1878) ([43d12f6](https://github.com/aurelia/aurelia/commit/43d12f6)) * **validation:** evaluation of tagged rules from bindings ([43d12f6](https://github.com/aurelia/aurelia/commit/43d12f6)) ### Refactorings: * **enums:** string literal types in favour of const enums (#1870) ([e21e0c9](https://github.com/aurelia/aurelia/commit/e21e0c9)) <a name="2.0.0-beta.9"></a> # 2.0.0-beta.9 (2023-12-12) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.8"></a> # 2.0.0-beta.8 (2023-07-24) ### Refactorings: * **ref:** deprecate view-model.ref and introduce component.ref (#1803) ([97e8dad](https://github.com/aurelia/aurelia/commit/97e8dad)) <a name="2.0.0-beta.7"></a> # 2.0.0-beta.7 (2023-06-16) ### Features: * **build:** add a development entry point (#1770) ([69ff445](https://github.com/aurelia/aurelia/commit/69ff445)) <a name="2.0.0-beta.6"></a> # 2.0.0-beta.6 (2023-05-21) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.5"></a> # 2.0.0-beta.5 (2023-04-27) ### Refactorings: * **build:** preserve pure annotation for better tree shaking (#1745) ([0bc5cd6](https://github.com/aurelia/aurelia/commit/0bc5cd6)) <a name="2.0.0-beta.4"></a> # 2.0.0-beta.4 (2023-04-13) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.3"></a> # 2.0.0-beta.3 (2023-03-24) ### Refactorings: * **controller:** remove lifecycle flags (#1707) ([a31cd75](https://github.com/aurelia/aurelia/commit/a31cd75)) * **ci:** remove e2e safari from pipeline ([a31cd75](https://github.com/aurelia/aurelia/commit/a31cd75)) * **tests:** disable hook tests ([a31cd75](https://github.com/aurelia/aurelia/commit/a31cd75)) * **build:** use turbo to boost build speed (#1692) ([d99b136](https://github.com/aurelia/aurelia/commit/d99b136)) <a name="2.0.0-beta.2"></a> # 2.0.0-beta.2 (2023-02-26) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-beta.1"></a> # 2.0.0-beta.1 (2023-01-12) ### Refactorings: * **runtime:** cleanup & size opt, rename binding methods (#1582) ([2000e3b](https://github.com/aurelia/aurelia/commit/2000e3b)) * **runtime:** remove interceptor prop from interface ([3074f54](https://github.com/aurelia/aurelia/commit/3074f54)) * **binding-behavior:** remove binding interceptor ([767eee7](https://github.com/aurelia/aurelia/commit/767eee7)) * **bindings:** create override fn instead of binding interceptor ([5c2ed80](https://github.com/aurelia/aurelia/commit/5c2ed80)) * **ast:** extract evaluate into a seprate fn ([6691f7f](https://github.com/aurelia/aurelia/commit/6691f7f)) <a name="2.0.0-alpha.41"></a> # 2.0.0-alpha.41 (2022-09-22) ### Refactorings: * **bindings:** remove flags from bind/unbind (#1560) ([eaaf4bb](https://github.com/aurelia/aurelia/commit/eaaf4bb)) * ***:** remove flags from observers (#1557) ([9f9a8fe](https://github.com/aurelia/aurelia/commit/9f9a8fe)) * **binding:** move BindingMode to runtime-html (#1555) ([c75618b](https://github.com/aurelia/aurelia/commit/c75618b)) * **ast:** remove flags from evaluate (#1553) ([dda997b](https://github.com/aurelia/aurelia/commit/dda997b)) <a name="2.0.0-alpha.40"></a> # 2.0.0-alpha.40 (2022-09-07) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.39"></a> # 2.0.0-alpha.39 (2022-09-01) ### Bug Fixes: * **validation-html:** transient injection symbol for presenter service (#1525) ([8652550](https://github.com/aurelia/aurelia/commit/8652550)) * **validation:** transient injection symbol for presenter service ([8652550](https://github.com/aurelia/aurelia/commit/8652550)) <a name="2.0.0-alpha.38"></a> # 2.0.0-alpha.38 (2022-08-17) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.37"></a> # 2.0.0-alpha.37 (2022-08-03) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.36"></a> # 2.0.0-alpha.36 (2022-07-25) ### Bug Fixes: * **validation-html:** validate BB trigger (#1472) ([10ee21c](https://github.com/aurelia/aurelia/commit/10ee21c)) * **validation-html:** validate BB trigger ([10ee21c](https://github.com/aurelia/aurelia/commit/10ee21c)) <a name="2.0.0-alpha.35"></a> # 2.0.0-alpha.35 (2022-06-08) ### Features: * **ts-jest,babel-jest:** upgrade to jest v28 (#1449) ([b1ec85c](https://github.com/aurelia/aurelia/commit/b1ec85c)) <a name="2.0.0-alpha.34"></a> # 2.0.0-alpha.34 (2022-06-03) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.33"></a> # 2.0.0-alpha.33 (2022-05-26) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.32"></a> # 2.0.0-alpha.32 (2022-05-22) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.31"></a> # 2.0.0-alpha.31 (2022-05-15) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.30"></a> # 2.0.0-alpha.30 (2022-05-07) ### Refactorings: * **runtime-html:** remove .js from im/export, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **runtime:** remove .js from im/export, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **kernel:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **testing:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **store-v1:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **validation:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **validation-html:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **validation-i18n:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **router-lite:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **router:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **i18n:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **fetch-client:** remove .js from im/ex, add type to barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **tests:** correct import origins ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **all:** remove imports from re-barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **all:** remove imports of re-barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **all:** remove imports of re-barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) * **all:** remove imports of re-barrel ([973ae46](https://github.com/aurelia/aurelia/commit/973ae46)) <a name="2.0.0-alpha.29"></a> # 2.0.0-alpha.29 (2022-04-27) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.28"></a> # 2.0.0-alpha.28 (2022-04-16) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.27"></a> # 2.0.0-alpha.27 (2022-04-08) ### Bug Fixes: * **build:** ensure correct __DEV__ build value replacement (#1377) ([40ce0e3](https://github.com/aurelia/aurelia/commit/40ce0e3)) <a name="2.0.0-alpha.26"></a> # 2.0.0-alpha.26 (2022-03-13) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.25"></a> # 2.0.0-alpha.25 (2022-03-08) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.24"></a> # 2.0.0-alpha.24 (2022-01-18) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.23"></a> # 2.0.0-alpha.23 (2021-11-22) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.22"></a> # 2.0.0-alpha.22 (2021-10-24) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.21"></a> # 2.0.0-alpha.21 (2021-09-12) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.20"></a> # 2.0.0-alpha.20 (2021-09-04) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.19"></a> # 2.0.0-alpha.19 (2021-08-29) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.18"></a> # 2.0.0-alpha.18 (2021-08-22) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.17"></a> # 2.0.0-alpha.17 (2021-08-16) ### Refactorings: * **validation:** controller-factories ([3ebc6d1](https://github.com/aurelia/aurelia/commit/3ebc6d1)) <a name="2.0.0-alpha.16"></a> # 2.0.0-alpha.16 (2021-08-07) ### Refactorings: * **all:** use a terser name cache for predictable prop mangling ([7649ced](https://github.com/aurelia/aurelia/commit/7649ced)) <a name="2.0.0-alpha.15"></a> # 2.0.0-alpha.15 (2021-08-01) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.14"></a> # 2.0.0-alpha.14 (2021-07-25) ### Refactorings: * **runtime:** mark more private properties ([8ecf70b](https://github.com/aurelia/aurelia/commit/8ecf70b)) <a name="2.0.0-alpha.13"></a> # 2.0.0-alpha.13 (2021-07-19) ### Refactorings: * **scope:** remove host scope ([0349810](https://github.com/aurelia/aurelia/commit/0349810)) <a name="2.0.0-alpha.12"></a> # 2.0.0-alpha.12 (2021-07-11) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.11"></a> # 2.0.0-alpha.11 (2021-07-11) ### Bug Fixes: * **call-binding:** assign args to event property, fixes #1231 ([fa4c0d4](https://github.com/aurelia/aurelia/commit/fa4c0d4)) <a name="2.0.0-alpha.10"></a> # 2.0.0-alpha.10 (2021-07-04) ### Refactorings: * **templating:** remove projections param from getRenderContext ([cf34e40](https://github.com/aurelia/aurelia/commit/cf34e40)) <a name="2.0.0-alpha.9"></a> # 2.0.0-alpha.9 (2021-06-25) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.8"></a> # 2.0.0-alpha.8 (2021-06-22) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.7"></a> # 2.0.0-alpha.7 (2021-06-20) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.6"></a> # 2.0.0-alpha.6 (2021-06-11) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.5"></a> # 2.0.0-alpha.5 (2021-05-31) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.4"></a> # 2.0.0-alpha.4 (2021-05-25) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.3"></a> # 2.0.0-alpha.3 (2021-05-19) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.2"></a> # 2.0.0-alpha.2 (2021-03-07) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.1"></a> # 2.0.0-alpha.1 (2021-03-03) **Note:** Version bump only for package @aurelia/validation-html <a name="2.0.0-alpha.0"></a> # 2.0.0-alpha.0 (2021-03-02) **Note:** Version bump only for package @aurelia/validation-html <a name="0.9.0"></a> # 0.9.0 (2021-01-31) ### Features: * **di:** remove DI.createInterface builder ([8146dcc](https://github.com/aurelia/aurelia/commit/8146dcc)) ### Bug Fixes: * ***:** broken validation tests ([a051257](https://github.com/aurelia/aurelia/commit/a051257)) * **runtime:** prevent early taskQueue yield ([a72c8b2](https://github.com/aurelia/aurelia/commit/a72c8b2)) <a name="0.8.0"></a> # 0.8.0 (2020-11-30) ### Bug Fixes: * **validation-binding-behavior:** cancel pending task on unbind ([6288382](https://github.com/aurelia/aurelia/commit/6288382)) * **validation:** au-slot integration tests ([12c80ae](https://github.com/aurelia/aurelia/commit/12c80ae)) * ***:** broken tests ([3a73602](https://github.com/aurelia/aurelia/commit/3a73602)) * **di:** registerFactory #822 ([4ac6543](https://github.com/aurelia/aurelia/commit/4ac6543)) ### Refactorings: * **dom:** give INode, IEventTarget and IRenderLocation overrideable generic types ([e2ac8b2](https://github.com/aurelia/aurelia/commit/e2ac8b2)) * **all:** add .js extensions for native esm compat ([0308e2e](https://github.com/aurelia/aurelia/commit/0308e2e)) * **validation:** merge evaluate & connect, more efficient handling of classes ([7803dc6](https://github.com/aurelia/aurelia/commit/7803dc6)) * **controller:** remove projector abstraction & rework attaching ([d69d03d](https://github.com/aurelia/aurelia/commit/d69d03d)) * **all:** rename beforeUnbind to unbinding ([17a82ed](https://github.com/aurelia/aurelia/commit/17a82ed)) * **all:** rename beforeBind to binding ([67b1c5d](https://github.com/aurelia/aurelia/commit/67b1c5d)) * **all:** move scheduler implementation to platform ([e22285a](https://github.com/aurelia/aurelia/commit/e22285a)) * **all:** remove IDOM, HTMLDOM and DOM; replace DOM with PLATFORM ([6447468](https://github.com/aurelia/aurelia/commit/6447468)) * **all:** move html-specific stuff from runtime to runtime-html and remove Node generics ([c745963](https://github.com/aurelia/aurelia/commit/c745963)) * **all:** remove PLATFORM global ([fdef656](https://github.com/aurelia/aurelia/commit/fdef656)) * **scope:** remove IScope interface and use import type where possible for Scope ([6b8eb5f](https://github.com/aurelia/aurelia/commit/6b8eb5f)) * **validation-html:** ensure .evaluate() is called with null ([340bc1a](https://github.com/aurelia/aurelia/commit/340bc1a)) * **all:** remove AST interfaces ([7e04d83](https://github.com/aurelia/aurelia/commit/7e04d83)) * **all:** remove State enum and use simple booleans instead ([762d3c7](https://github.com/aurelia/aurelia/commit/762d3c7)) * ***:** host scope & AST ([9067a2c](https://github.com/aurelia/aurelia/commit/9067a2c)) <a name="0.7.0"></a> # 0.7.0 (2020-05-08) ### Features: * **validation:** new changeOrEvent behavior ([d7e33dc](https://github.com/aurelia/aurelia/commit/d7e33dc)) * **validation:** customizable container template ([16a9e2a](https://github.com/aurelia/aurelia/commit/16a9e2a)) ### Bug Fixes: * **validation:** optional IValidationController ([5a5114b](https://github.com/aurelia/aurelia/commit/5a5114b)) * **validation:** addError-revalidateError bug ([61c6f44](https://github.com/aurelia/aurelia/commit/61c6f44)) * **validation-html:** deepscan issue ([c53c78b](https://github.com/aurelia/aurelia/commit/c53c78b)) * **validation:** subscription to validate event ([f4bb10d](https://github.com/aurelia/aurelia/commit/f4bb10d)) * **validation-html:** controller injection ([800516e](https://github.com/aurelia/aurelia/commit/800516e)) ### Refactorings: * **validation:** tests correction ([7138530](https://github.com/aurelia/aurelia/commit/7138530)) * **validation:** optional scoped controller ([1484ed3](https://github.com/aurelia/aurelia/commit/1484ed3)) * **validation:** removed usage of BaseValidationRule in favor of IValidationRule ([72d4536](https://github.com/aurelia/aurelia/commit/72d4536)) * **validation:** validation-html bifurcation ([e2ca34f](https://github.com/aurelia/aurelia/commit/e2ca34f))