ember-validated-form 6.2.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.husky/commit-msg CHANGED
@@ -4,4 +4,4 @@
4
4
  # skip in CI
5
5
  [ -n "$CI" ] && exit 0
6
6
 
7
- yarn commitlint --edit $1
7
+ pnpm commitlint --edit $1
package/.husky/pre-commit CHANGED
@@ -5,4 +5,4 @@
5
5
  [ -n "$CI" ] && exit 0
6
6
 
7
7
  # lint only staged files
8
- yarn lint-staged
8
+ pnpm lint-staged
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [7.0.1](https://github.com/adfinis/ember-validated-form/compare/v7.0.0...v7.0.1) (2024-03-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependencies ([c2d187b](https://github.com/adfinis/ember-validated-form/commit/c2d187bbbf8652f0bc30637a9b5b5f5c46e44296))
7
+
8
+ # [7.0.0](https://github.com/adfinis/ember-validated-form/compare/v6.2.0...v7.0.0) (2023-11-21)
9
+
10
+
11
+ ### chore
12
+
13
+ * **deps:** update ember and dependencies ([fc26b0b](https://github.com/adfinis/ember-validated-form/commit/fc26b0be302c24dafccad37a53dc7dd2bcc59bc9))
14
+
15
+
16
+ ### Features
17
+
18
+ * allow html attributes to be passed to wrapping form element ([b29f4d8](https://github.com/adfinis/ember-validated-form/commit/b29f4d88133aa58a9613aa9bf9f1f6a2761a7974))
19
+
20
+
21
+ ### BREAKING CHANGES
22
+
23
+ * **deps:** Drop support for Ember v3.
24
+
1
25
  # [6.2.0](https://github.com/adfinis/ember-validated-form/compare/v6.1.2...v6.2.0) (2023-02-23)
2
26
 
3
27
 
@@ -1,4 +1,8 @@
1
- <form autocomplete={{@autocomplete}} class={{if this.submitted "submitted"}}>
1
+ <form
2
+ autocomplete={{@autocomplete}}
3
+ class={{if this.submitted "submitted"}}
4
+ ...attributes
5
+ >
2
6
  {{yield
3
7
  (hash
4
8
  model=@model
@@ -49,7 +49,7 @@ export default class ValidatedFormComponent extends Component {
49
49
  if (model.errors[0]?.key) {
50
50
  document
51
51
  .querySelector(
52
- `[name=${model.errors[0].key.replaceAll(".", "\\.")}]`
52
+ `[name=${model.errors[0].key.replaceAll(".", "\\.")}]`,
53
53
  )
54
54
  ?.scrollIntoView({ behavior: "smooth" });
55
55
  }
@@ -86,9 +86,9 @@
86
86
  @update={{@update}}
87
87
  ...attributes
88
88
  />
89
- {{else if (and
90
- (eq @type "date") (not-eq this.dateComponent this.inputComponent)
91
- )}}
89
+ {{else if
90
+ (and (eq @type "date") (not-eq this.dateComponent this.inputComponent))
91
+ }}
92
92
  <this.dateComponent
93
93
  @autocomplete={{@autocomplete}}
94
94
  @autofocus={{@autofocus}}
@@ -8,7 +8,7 @@ export default function passedOrDefault(componentName) {
8
8
  return ensureSafeComponent(
9
9
  this.args[property] ??
10
10
  importSync(getOwnConfig()[componentName]).default,
11
- this
11
+ this,
12
12
  );
13
13
  },
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-validated-form",
3
- "version": "6.2.0",
3
+ "version": "7.0.1",
4
4
  "description": "Easily create forms with client-side validations",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -20,81 +20,103 @@
20
20
  },
21
21
  "scripts": {
22
22
  "build": "ember build --environment=production",
23
- "lint": "npm-run-all --print-name --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
24
- "lint:fix": "npm-run-all --print-name --aggregate-output --continue-on-error --parallel \"lint:*:fix\"",
23
+ "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
24
+ "lint:css": "stylelint \"**/*.css\"",
25
+ "lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
26
+ "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
25
27
  "lint:hbs": "ember-template-lint .",
26
28
  "lint:hbs:fix": "ember-template-lint . --fix",
27
29
  "lint:js": "eslint . --cache",
28
30
  "lint:js:fix": "eslint . --fix",
29
31
  "start": "ember serve",
30
- "test": "npm-run-all --print-name \"lint\" \"test:*\"",
32
+ "test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
31
33
  "test:ember": "ember test",
32
34
  "test:ember-compatibility": "ember try:each",
33
35
  "prepare": "husky install"
34
36
  },
35
37
  "dependencies": {
36
- "@embroider/macros": "^1.8.3",
37
- "@embroider/util": "^1.9.0",
38
+ "@babel/core": "^7.24.0",
39
+ "@embroider/macros": "^1.15.0",
40
+ "@embroider/util": "^1.13.0",
38
41
  "@glimmer/component": "^1.1.2",
39
42
  "@glimmer/tracking": "^1.1.2",
40
43
  "ember-changeset": "^4.1.2",
41
44
  "ember-changeset-validations": "^4.1.1",
42
- "ember-cli-babel": "^7.26.11",
43
- "ember-cli-htmlbars": "^6.1.1",
44
- "ember-truth-helpers": "^3.1.1"
45
+ "ember-cli-babel": "^8.2.0",
46
+ "ember-cli-htmlbars": "^6.3.0",
47
+ "ember-truth-helpers": "^3.1.0"
45
48
  },
46
49
  "devDependencies": {
47
- "@adfinis-sygroup/eslint-config": "1.5.0",
48
- "@adfinis-sygroup/semantic-release-config": "3.4.0",
49
- "@ember/optional-features": "2.0.0",
50
- "@ember/test-helpers": "2.8.1",
51
- "@embroider/test-setup": "1.8.3",
52
- "@fortawesome/ember-fontawesome": "0.4.1",
53
- "@fortawesome/free-solid-svg-icons": "6.2.0",
54
- "babel-eslint": "10.1.0",
50
+ "@adfinis/eslint-config": "2.1.1",
51
+ "@adfinis/semantic-release-config": "4.1.0",
52
+ "@babel/eslint-parser": "7.23.10",
53
+ "@babel/plugin-proposal-decorators": "7.24.0",
54
+ "@ember/optional-features": "2.1.0",
55
+ "@ember/string": "3.1.1",
56
+ "@ember/test-helpers": "3.3.0",
57
+ "@embroider/test-setup": "3.0.3",
58
+ "@fortawesome/ember-fontawesome": "2.0.0",
59
+ "@fortawesome/fontawesome-svg-core": "6.5.1",
60
+ "@fortawesome/free-solid-svg-icons": "6.5.1",
55
61
  "broccoli-asset-rev": "3.0.0",
56
- "ember-auto-import": "2.4.3",
57
- "ember-cli": "4.8.0",
58
- "ember-cli-addon-docs": "5.0.0",
59
- "ember-cli-dependency-checker": "3.3.1",
60
- "ember-cli-deploy": "1.0.2",
61
- "ember-cli-deploy-build": "2.0.0",
62
+ "concurrently": "8.2.2",
63
+ "ember-auto-import": "2.7.2",
64
+ "ember-cli": "5.7.0",
65
+ "ember-cli-addon-docs": "7.0.1",
66
+ "ember-cli-clean-css": "3.0.0",
67
+ "ember-cli-dependency-checker": "3.3.2",
68
+ "ember-cli-deploy": "2.0.0",
69
+ "ember-cli-deploy-build": "3.0.0",
62
70
  "ember-cli-deploy-git": "1.3.4",
63
71
  "ember-cli-deploy-git-ci": "1.0.1",
64
72
  "ember-cli-inject-live-reload": "2.1.0",
65
73
  "ember-cli-sri": "2.1.1",
66
74
  "ember-cli-terser": "4.0.2",
67
- "ember-cli-test-loader": "3.0.0",
68
- "ember-concurrency": "2.3.7",
69
- "ember-data": "4.4.1",
70
- "ember-disable-prototype-extensions": "1.1.3",
71
- "ember-flatpickr": "3.2.3",
75
+ "ember-cli-test-loader": "3.1.0",
76
+ "ember-concurrency": "4.0.1",
77
+ "ember-data": "5.3.3",
78
+ "ember-flatpickr": "7.1.0",
72
79
  "ember-load-initializers": "2.1.2",
73
- "ember-qunit": "6.0.0",
74
- "ember-resolver": "8.0.3",
75
- "ember-source": "4.8.0",
80
+ "ember-qunit": "8.0.2",
81
+ "ember-resolver": "11.0.1",
82
+ "ember-source": "5.7.0",
76
83
  "ember-source-channel-url": "3.0.0",
77
- "ember-template-lint": "4.17.0",
78
- "ember-template-lint-plugin-prettier": "4.0.0",
79
- "ember-try": "2.0.0",
80
- "eslint": "7.32.0",
81
- "eslint-config-prettier": "8.5.0",
82
- "eslint-plugin-ember": "11.2.0",
83
- "eslint-plugin-import": "2.26.0",
84
- "eslint-plugin-node": "11.1.0",
85
- "eslint-plugin-prettier": "4.2.1",
86
- "eslint-plugin-qunit": "7.3.1",
87
- "husky": "8.0.3",
88
- "lint-staged": "13.0.3",
84
+ "ember-template-lint": "5.13.0",
85
+ "ember-template-lint-plugin-prettier": "5.0.0",
86
+ "ember-try": "3.0.0",
87
+ "eslint": "8.57.0",
88
+ "eslint-config-prettier": "9.1.0",
89
+ "eslint-plugin-ember": "12.0.2",
90
+ "eslint-plugin-import": "2.29.1",
91
+ "eslint-plugin-n": "16.6.2",
92
+ "eslint-plugin-prettier": "5.1.3",
93
+ "eslint-plugin-qunit": "8.1.1",
94
+ "flatpickr": "4.6.13",
95
+ "husky": "9.0.11",
96
+ "lint-staged": "15.2.2",
89
97
  "loader.js": "4.7.0",
90
- "npm-run-all": "4.1.5",
91
- "prettier": "2.7.1",
92
- "qunit": "2.19.3",
93
- "qunit-dom": "2.0.0",
94
- "webpack": "5.74.0"
98
+ "prettier": "3.2.5",
99
+ "qunit": "2.20.1",
100
+ "qunit-dom": "3.0.0",
101
+ "semantic-release": "23.0.4",
102
+ "stylelint": "16.2.1",
103
+ "stylelint-config-standard": "36.0.0",
104
+ "stylelint-prettier": "5.0.0",
105
+ "webpack": "5.90.3"
106
+ },
107
+ "peerDependencies": {
108
+ "ember-source": ">= 4.0.0"
109
+ },
110
+ "packageManager": "pnpm@8.11.0",
111
+ "pnpm": {
112
+ "peerDependencyRules": {
113
+ "allowedVersions": {
114
+ "ember-source": "^5.0.0"
115
+ }
116
+ }
95
117
  },
96
118
  "engines": {
97
- "node": "14.* || 16.* || >= 18"
119
+ "node": ">= 18"
98
120
  },
99
121
  "ember": {
100
122
  "edition": "octane"
@@ -104,12 +126,13 @@
104
126
  "demoURL": "https://adfinis.github.io/ember-validated-form"
105
127
  },
106
128
  "release": {
107
- "extends": "@adfinis-sygroup/semantic-release-config"
129
+ "extends": "@adfinis/semantic-release-config"
108
130
  },
109
131
  "lint-staged": {
110
132
  "*.js": "eslint --cache --fix",
111
133
  "*.hbs": "ember-template-lint --fix",
112
- "*.{scss,graphql,json,md,yml}": "prettier --write"
134
+ "*.css": "stylelint --fix",
135
+ "*.{json,md,yml}": "prettier --write"
113
136
  },
114
137
  "commitlint": {
115
138
  "extends": [
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declarationDir": "declarations",
5
+ "emitDeclarationOnly": true,
6
+ "noEmit": false,
7
+ "rootDir": "."
8
+ },
9
+ "include": ["addon", "addon-test-support"]
10
+ }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (/* environment, appConfig */) {
4
- return {};
5
- };