ampersand-input-view
Advanced tools
Comparing version 4.0.5 to 5.0.0
@@ -52,2 +52,7 @@ /*$AMPERSAND_VERSION*/ | ||
name: 'placeholder' | ||
}, | ||
'readonly': { | ||
type: 'booleanAttribute', | ||
name: 'readonly', | ||
selector: 'input, textarea' | ||
} | ||
@@ -90,2 +95,3 @@ }, | ||
directlyEdited: ['boolean', true, false], | ||
readonly: ['boolean', true, false], | ||
shouldValidate: ['boolean', true, false], | ||
@@ -92,0 +98,0 @@ message: ['string', true, ''], |
{ | ||
"name": "ampersand-input-view", | ||
"description": "A view module for intelligently rendering and validating input. Works well with ampersand-form-view.", | ||
"version": "4.0.5", | ||
"version": "5.0.0", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -11,2 +11,5 @@ "browserify": { | ||
}, | ||
"files": [ | ||
"ampersand-input-view.js" | ||
], | ||
"bugs": { | ||
@@ -18,3 +21,3 @@ "url": "https://github.com/ampersandjs/ampersand-input-view/issues" | ||
"ampersand-version": "^1.0.1", | ||
"ampersand-view": "^7.2.1", | ||
"ampersand-view": "^8.0.0", | ||
"matches-selector": "^1.0.0" | ||
@@ -24,11 +27,11 @@ }, | ||
"ampersand-view-conventions": "^1.1.5", | ||
"browserify": "^5.10.1", | ||
"browserify": "^10.2.4", | ||
"function-bind": "^1.0.0", | ||
"jshint": "^2.5.6", | ||
"phantomjs": "^1.9.7-15", | ||
"precommit-hook": "^1.0.7", | ||
"run-browser": "^1.3.1", | ||
"tap-spec": "^0.2.1", | ||
"precommit-hook": "^3.0.0", | ||
"run-browser": "^2.0.2", | ||
"tap-spec": "^4.0.2", | ||
"tape": "^2.14.0", | ||
"tape-run": "^0.3.0", | ||
"tape-run": "^1.0.0", | ||
"tape-suite": "^0.2.1" | ||
@@ -50,4 +53,15 @@ }, | ||
"start": "run-browser test/index.js", | ||
"test": "browserify test/index.js | tape-run | tap-spec" | ||
} | ||
"test": "browserify test/index.js | tape-run | tap-spec", | ||
"preversion": "git checkout master && git pull && npm ls", | ||
"publish-patch": "npm run preversion && npm version patch && git push origin master --tags && npm publish", | ||
"publish-minor": "npm run preversion && npm version minor && git push origin master --tags && npm publish", | ||
"publish-major": "npm run preversion && npm version major && git push origin master --tags && npm publish", | ||
"lint": "jshint .", | ||
"validate": "npm ls" | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"validate", | ||
"test" | ||
] | ||
} |
@@ -88,2 +88,3 @@ # ampersand-input-view | ||
- `required` (default: `true`): whether this field is required or not. | ||
- `readonly` (default: `false`): whether this field is read only or not. | ||
- `requiredMessage` (default: `'This field is required'`): message to use if required and empty. | ||
@@ -305,2 +306,6 @@ - `validClass` (default: `'input-valid'`): class to apply to input if valid (see below for customizing where this is applied). | ||
## changelog | ||
- 5.0.0 | ||
- Upgrade to &-view 8.x | ||
- Add `readonly` option | ||
- dependency and test maintenance | ||
- 4.0.5 | ||
@@ -307,0 +312,0 @@ - Handle uncaught input value changes beforeSubmit |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
330
24069
4
239
1
+ Addedampersand-view@8.0.1(transitive)
- Removedampersand-view@7.4.2(transitive)
Updatedampersand-view@^8.0.0