From e4cf73bec32e29e8458717096c33e5fda5db1453 Mon Sep 17 00:00:00 2001 From: janvanderhaegen Date: Wed, 10 Jun 2015 11:46:07 -0500 Subject: [PATCH] chore(all): prepare-release 0.2.5 --- bower.json | 2 +- build/babel-options.js | 5 ++- config.js | 54 +++++++++++++++++++++------ dist/amd/resources/nl-NL.js | 2 +- dist/commonjs/resources/nl-NL.js | 2 +- dist/es6/resources/nl-NL.js | 2 +- dist/system/resources/nl-NL.js | 2 +- doc/CHANGELOG.md | 64 ++++++++++++++++++++++++++++++++ package.json | 15 ++++++-- 9 files changed, 126 insertions(+), 22 deletions(-) diff --git a/bower.json b/bower.json index 1c57c9ac..8dd70e0f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.2.4", + "version": "0.2.5", "description": "A validation plugin for Aurelia.", "keywords": [ "aurelia", diff --git a/build/babel-options.js b/build/babel-options.js index 2c90b9bd..a8cd854a 100644 --- a/build/babel-options.js +++ b/build/babel-options.js @@ -1,7 +1,6 @@ module.exports = { filename: '', filenameRelative: '', - modules: '', sourceMap: true, sourceMapName: '', sourceRoot: '', @@ -13,7 +12,9 @@ module.exports = { code:true, stage:2, loose: "all", + modules: 'system', optional: [ - "es7.decorators" + "es7.decorators", + "es7.classProperties" ] }; diff --git a/config.js b/config.js index c783d1cd..838dc173 100644 --- a/config.js +++ b/config.js @@ -1,4 +1,5 @@ System.config({ + "transpiler": "traceur", "paths": { "*": "*.js", "github:*": "jspm_packages/github/*.js", @@ -8,30 +9,50 @@ System.config({ System.config({ "map": { - "aurelia-binding": "github:aurelia/binding@0.6.1", - "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.1", - "aurelia-templating": "github:aurelia/templating@0.11.2", - "traceur": "github:jmcriffey/bower-traceur@0.0.87", - "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.87", + "aurelia-binding": "github:aurelia/binding@0.7.3", + "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.8.1", + "aurelia-templating": "github:aurelia/templating@0.12.1", + "traceur": "github:jmcriffey/bower-traceur@0.0.88", + "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.88", "github:aurelia/binding@0.6.1": { "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.1", "aurelia-metadata": "github:aurelia/metadata@0.5.0", "aurelia-task-queue": "github:aurelia/task-queue@0.4.0", - "core-js": "npm:core-js@0.9.13" + "core-js": "npm:core-js@0.9.15" + }, + "github:aurelia/binding@0.7.3": { + "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.8.1", + "aurelia-metadata": "github:aurelia/metadata@0.6.0", + "aurelia-task-queue": "github:aurelia/task-queue@0.5.0", + "core-js": "npm:core-js@0.9.15" }, "github:aurelia/dependency-injection@0.7.1": { "aurelia-logging": "github:aurelia/logging@0.4.0", "aurelia-metadata": "github:aurelia/metadata@0.5.0", - "core-js": "npm:core-js@0.9.13" + "core-js": "npm:core-js@0.9.15" + }, + "github:aurelia/dependency-injection@0.8.1": { + "aurelia-logging": "github:aurelia/logging@0.5.0", + "aurelia-metadata": "github:aurelia/metadata@0.6.0", + "core-js": "npm:core-js@0.9.15" }, "github:aurelia/loader@0.6.0": { "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", "aurelia-path": "github:aurelia/path@0.6.1", - "core-js": "npm:core-js@0.9.13", + "core-js": "npm:core-js@0.9.15", + "webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.3" + }, + "github:aurelia/loader@0.7.0": { + "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", + "aurelia-path": "github:aurelia/path@0.7.0", + "core-js": "npm:core-js@0.9.15", "webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.3" }, "github:aurelia/metadata@0.5.0": { - "core-js": "npm:core-js@0.9.13" + "core-js": "npm:core-js@0.9.15" + }, + "github:aurelia/metadata@0.6.0": { + "core-js": "npm:core-js@0.9.15" }, "github:aurelia/templating@0.11.2": { "aurelia-binding": "github:aurelia/binding@0.6.1", @@ -42,12 +63,23 @@ System.config({ "aurelia-metadata": "github:aurelia/metadata@0.5.0", "aurelia-path": "github:aurelia/path@0.6.1", "aurelia-task-queue": "github:aurelia/task-queue@0.4.0", - "core-js": "npm:core-js@0.9.13" + "core-js": "npm:core-js@0.9.15" + }, + "github:aurelia/templating@0.12.1": { + "aurelia-binding": "github:aurelia/binding@0.7.3", + "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.8.1", + "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", + "aurelia-loader": "github:aurelia/loader@0.7.0", + "aurelia-logging": "github:aurelia/logging@0.5.0", + "aurelia-metadata": "github:aurelia/metadata@0.6.0", + "aurelia-path": "github:aurelia/path@0.7.0", + "aurelia-task-queue": "github:aurelia/task-queue@0.5.0", + "core-js": "npm:core-js@0.9.15" }, "github:jspm/nodelibs-process@0.1.1": { "process": "npm:process@0.10.1" }, - "npm:core-js@0.9.13": { + "npm:core-js@0.9.15": { "fs": "github:jspm/nodelibs-fs@0.1.2", "process": "github:jspm/nodelibs-process@0.1.1", "systemjs-json": "github:systemjs/plugin-json@0.1.0" diff --git a/dist/amd/resources/nl-NL.js b/dist/amd/resources/nl-NL.js index 8b0dc2b6..c1896164 100644 --- a/dist/amd/resources/nl-NL.js +++ b/dist/amd/resources/nl-NL.js @@ -58,7 +58,7 @@ define(['exports', '../validation/utilities'], function (exports, _validationUti return 'moet op zijn minst ' + _validationUtilities.Utilities.getValue(threshold) + ' tekens lang zijn'; }, MinimumValueValidationRule: function MinimumValueValidationRule(newValue, threshold) { - return 'moet op meer dan ' + _validationUtilities.Utilities.getValue(threshold) + ' zijn'; + return 'moet meer dan ' + _validationUtilities.Utilities.getValue(threshold) + ' zijn'; }, MaximumInclusiveValueValidationRule: function MaximumInclusiveValueValidationRule(newValue, threshold) { return 'moet op zijn meest ' + _validationUtilities.Utilities.getValue(threshold) + ' zijn'; diff --git a/dist/commonjs/resources/nl-NL.js b/dist/commonjs/resources/nl-NL.js index 9c984bb8..be3d8ac0 100644 --- a/dist/commonjs/resources/nl-NL.js +++ b/dist/commonjs/resources/nl-NL.js @@ -60,7 +60,7 @@ var data = { return 'moet op zijn minst ' + _Utilities.Utilities.getValue(threshold) + ' tekens lang zijn'; }, MinimumValueValidationRule: function MinimumValueValidationRule(newValue, threshold) { - return 'moet op meer dan ' + _Utilities.Utilities.getValue(threshold) + ' zijn'; + return 'moet meer dan ' + _Utilities.Utilities.getValue(threshold) + ' zijn'; }, MaximumInclusiveValueValidationRule: function MaximumInclusiveValueValidationRule(newValue, threshold) { return 'moet op zijn meest ' + _Utilities.Utilities.getValue(threshold) + ' zijn'; diff --git a/dist/es6/resources/nl-NL.js b/dist/es6/resources/nl-NL.js index 04e77d6a..dda57c7c 100644 --- a/dist/es6/resources/nl-NL.js +++ b/dist/es6/resources/nl-NL.js @@ -56,7 +56,7 @@ export let data = { return `moet op zijn minst ${Utilities.getValue(threshold)} tekens lang zijn`; }, 'MinimumValueValidationRule': (newValue, threshold) => { - return `moet op meer dan ${Utilities.getValue(threshold)} zijn`; + return `moet meer dan ${Utilities.getValue(threshold)} zijn`; }, 'MaximumInclusiveValueValidationRule' : (newValue, threshold) => { return `moet op zijn meest ${Utilities.getValue(threshold)} zijn`; diff --git a/dist/system/resources/nl-NL.js b/dist/system/resources/nl-NL.js index 9e5c3d49..bc22ac82 100644 --- a/dist/system/resources/nl-NL.js +++ b/dist/system/resources/nl-NL.js @@ -63,7 +63,7 @@ System.register(['../validation/utilities'], function (_export) { return 'moet op zijn minst ' + Utilities.getValue(threshold) + ' tekens lang zijn'; }, MinimumValueValidationRule: function MinimumValueValidationRule(newValue, threshold) { - return 'moet op meer dan ' + Utilities.getValue(threshold) + ' zijn'; + return 'moet meer dan ' + Utilities.getValue(threshold) + ' zijn'; }, MaximumInclusiveValueValidationRule: function MaximumInclusiveValueValidationRule(newValue, threshold) { return 'moet op zijn meest ' + Utilities.getValue(threshold) + ' zijn'; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 890dd3da..fcc8d401 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,67 @@ +### 0.2.5 (2015-06-10) + + +#### Bug Fixes + +* **API:** API is inconsistent ([cc7b407c](https://github.com/aurelia/validation/commit/cc7b407c97f499b0b920c2918173d0966882c745), closes [#20](https://github.com/aurelia/validation/issues/20)) +* **DOC:** forgot to add to intro.md ([95e8ab7a](https://github.com/aurelia/validation/commit/95e8ab7a5b0cf7e77c8df48426fc688ff5cc6811)) +* **I18N:** fixed number formatting ([8e946418](https://github.com/aurelia/validation/commit/8e946418b93e55f7be12d5f74370a186dd2f6346)) +* **ValidateCustomAttributeViewStrategyBase:** ValidateCustomAttributeViewStrategyBase is not exported ([cfca0142](https://github.com/aurelia/validation/commit/cfca0142fff2d1423f6e90eb635e64367e475375)) +* **clear:** + * timing issues ([1de58eaa](https://github.com/aurelia/validation/commit/1de58eaa11f6300b55f049d829df6ff54c1affb6)) + * timing issues ([d9df1d13](https://github.com/aurelia/validation/commit/d9df1d13166440f8661b48bf6c6f943d7fb5c66f), closes [#44](https://github.com/aurelia/validation/issues/44)) +* **config:** + * config should be a singleton ([42e4b4c4](https://github.com/aurelia/validation/commit/42e4b4c484e462363c649bad93add8ee37c6310e)) + * config should be a singleton ([c1125852](https://github.com/aurelia/validation/commit/c11258521bb112c161862235767c5d27042f73ad)) +* **decorators:** @ensure was imported, not exported ([d421c299](https://github.com/aurelia/validation/commit/d421c29957d4afb2a6d6b5c4efb8817b17401201)) +* **email:** add a better email validation ([9e45f82d](https://github.com/aurelia/validation/commit/9e45f82db028c71a88a5d75c4fdf678c5474e7a3)) +* **en-US:** fixed message for BetweenLength ([f25c63ef](https://github.com/aurelia/validation/commit/f25c63ef60981079cfe6a9112357df4c573bf996)) +* **install:** + * using aurelia api vs container api ([904c29ad](https://github.com/aurelia/validation/commit/904c29adff8317d7a4a8099ee17e467a6a2cfec6)) + * invalid install logic ([d9d59fab](https://github.com/aurelia/validation/commit/d9d59fab394f745cb085a5a264eb1a8aa34c7636)) +* **locale:** + * locales are not being loaded ([e6261e59](https://github.com/aurelia/validation/commit/e6261e59843fcd8d53c4f08096bd14b1ef38dcc4)) + * locales are not being loaded ([b83833c9](https://github.com/aurelia/validation/commit/b83833c92cd06ea306f842bcb7e3f1758f5433ae)) +* **nl-BE:** small typo ([2cce4e5b](https://github.com/aurelia/validation/commit/2cce4e5b245791e43567b96c61e6c7215b4506ee)) +* **onValidate:** + * onValidate would overwrite already invalid properties ([ff92803e](https://github.com/aurelia/validation/commit/ff92803e91ded0c29855ca73f8d5169abddd3466)) + * onValidate broke fluent api ([b40954c7](https://github.com/aurelia/validation/commit/b40954c7baab3fa537412f09b60e5a064cac842d)) +* **onvalidate:** ability to omit properties ([d3a79d47](https://github.com/aurelia/validation/commit/d3a79d47aac5a8e5d760f88a7b3f6d3dce456a38)) +* **package:** + * NPM package did not have index.js ([3657e9a0](https://github.com/aurelia/validation/commit/3657e9a0ed4d10cbd92b1313c17a1d510f6b6eef), closes [#22](https://github.com/aurelia/validation/issues/22)) + * NPM package did not have index.js ([a5ad3dd9](https://github.com/aurelia/validation/commit/a5ad3dd91b08ea6b64fcdc074fc6b7ab7ad5fc63), closes [#22](https://github.com/aurelia/validation/issues/22)) +* **path-observer:** correct function call typo ([010d711c](https://github.com/aurelia/validation/commit/010d711c97784aafa20300b2588a2019b1dcbf4e)) +* **timing:** Promises that finish late are not supported correctly ([d32dd93f](https://github.com/aurelia/validation/commit/d32dd93f6c5c0565f0a171f73f70da05cb739913), closes [#27](https://github.com/aurelia/validation/issues/27)) +* **trim:** values are no longer trimmed before validation ([e567cb8e](https://github.com/aurelia/validation/commit/e567cb8e450fe56a8d1e98fa48ec3d940c052507), closes [#32](https://github.com/aurelia/validation/issues/32)) +* **validate-custom-attribute:** remove import ([2ae52928](https://github.com/aurelia/validation/commit/2ae52928015abc7cda3c847bff7dbd433c2e9155)) +* **validation-config:** added missing this ref ([4734d96b](https://github.com/aurelia/validation/commit/4734d96b89f1689c09135750ca1c587031fa9ef3)) +* **validation-property:** fix throw syntax error ([07e51d56](https://github.com/aurelia/validation/commit/07e51d562846d7ef0806df56246563d1f920c379)) +* **validation-rules:** fix parse parameter ([7097a6d7](https://github.com/aurelia/validation/commit/7097a6d7b2152246f9ebe351745923c1478eba50)) +* **validation-rules-collection:** fix throw syntax ([1a861757](https://github.com/aurelia/validation/commit/1a861757633726767d5a430aa4a5876d42473b01)) +* **withMessage:** withMessage after isNotEmpty() ([69e27af5](https://github.com/aurelia/validation/commit/69e27af5e51f34fc844200d13ab1a68c0f8e6b8c), closes [#43](https://github.com/aurelia/validation/issues/43)) + + +#### Features + +* **I18N:** added es-MX ([edab3939](https://github.com/aurelia/validation/commit/edab39390daf928396a6c9b3dad27296b6c79f77)) +* **async:** validation is now running promises ([5e713096](https://github.com/aurelia/validation/commit/5e713096ca75a330521d2d1f2c09374f3e190068), closes [#3](https://github.com/aurelia/validation/issues/3)) +* **breeze:** + * documentation ([6751be32](https://github.com/aurelia/validation/commit/6751be32000280ece9e5e00c20b097fc2c3decac)) + * further development ([772f332b](https://github.com/aurelia/validation/commit/772f332b852407e1163c6a461571e75506d48a98)) + * initial binding to breeze entities ([acb3e26a](https://github.com/aurelia/validation/commit/acb3e26af1cff4e9e09a3e875c5db3bab3a24a56)) +* **clear:** validation.result.clear() resets validation result ([5c5deafb](https://github.com/aurelia/validation/commit/5c5deafb2f37eb1f9333fdd3321bd2391e21d14d), closes [#44](https://github.com/aurelia/validation/issues/44)) +* **config:** Allow runtime configuration ([8c9fefaf](https://github.com/aurelia/validation/commit/8c9fefaf51395fb180aa9575456a335bc69ace6c), closes [#8](https://github.com/aurelia/validation/issues/8), [#21](https://github.com/aurelia/validation/issues/21), [#34](https://github.com/aurelia/validation/issues/34)) +* **containsNoSpaces:** containsNoSpaces checks for a value not containing a single whitespace character ([518bb3b6](https://github.com/aurelia/validation/commit/518bb3b60a36a560c3fda4aa1575ccd416bae06f), closes [#57](https://github.com/aurelia/validation/issues/57)) +* **debouncer:** debouncer blocks continuously changing values ([fb577d0c](https://github.com/aurelia/validation/commit/fb577d0c1acbfafd2ce835c598c5137e8a694850)) +* **decorators:** introducing the @ensure property decorator ([784e73f2](https://github.com/aurelia/validation/commit/784e73f28ed44a357d78528ac9ddc4b26a7cf794)) +* **i18n:** added resource for language es-MX ([55f65257](https://github.com/aurelia/validation/commit/55f6525769133b342289c4e262ba616f63dfd2eb)) +* **isURL:** isURL checks for a value being a valid URL ([5499ab6f](https://github.com/aurelia/validation/commit/5499ab6f59b719b7efc6c5e9d44510b8dfc3987d), closes [#56](https://github.com/aurelia/validation/issues/56)) +* **isValidating:** isValidating is true while validating ([d5cd18c0](https://github.com/aurelia/validation/commit/d5cd18c0601d1246ac1af9cf274db160ebdd26ba)) +* **onValidate:** callback for async validation on the entire subject ([1f828849](https://github.com/aurelia/validation/commit/1f828849ed13e31088b3c5e88254bacc51153d19), closes [#25](https://github.com/aurelia/validation/issues/25)) +* **validateAttachedBehavior:** show 'success' for properties with no validation rules ([8c53d77f](https://github.com/aurelia/validation/commit/8c53d77f9d10d1abc0f53898dce13ba0d216dda7), closes [#17](https://github.com/aurelia/validation/issues/17)) +* **viewStrategy:** Allows different view strategy to be plugged ([938ac37f](https://github.com/aurelia/validation/commit/938ac37f12b23db2f72e820ef3405fec63ee8c68), closes [#6](https://github.com/aurelia/validation/issues/6)) + + ### 0.2.4 (2015-05-01) diff --git a/package.json b/package.json index 2d22450f..ce4e86ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.2.4", + "version": "0.2.5", "description": "A validation plugin for Aurelia.", "keywords": [ "aurelia", @@ -25,9 +25,16 @@ "lib": "dist/system" }, "dependencies": { - "aurelia-binding": "github:aurelia/binding@^0.6.1", - "aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.7.1", - "aurelia-templating": "github:aurelia/templating@^0.11.2" + "aurelia-binding": "github:aurelia/binding@^0.7.3", + "aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.8.1", + "aurelia-templating": "github:aurelia/templating@^0.12.1" + }, + "devDependencies": { + "babel": "npm:babel-core@^5.1.13", + "babel-runtime": "npm:babel-runtime@^5.1.13", + "core-js": "npm:core-js@^0.9.4", + "traceur": "github:jmcriffey/bower-traceur@0.0.88", + "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.88" } }, "devDependencies": {