ember-template-recast
Advanced tools
Comparing version 4.1.6 to 4.1.7
@@ -0,1 +1,14 @@ | ||
## v4.1.7 (2020-10-02) | ||
#### :bug: Bug Fix | ||
* [#299](https://github.com/ember-template-lint/ember-template-recast/pull/299) Ensure replacement of an ElementNode's attribute preserves its original position. ([@lifeart](https://github.com/lifeart)) | ||
#### :memo: Documentation | ||
* [#258](https://github.com/ember-template-lint/ember-template-recast/pull/258) Clearly define our SemVer policy. ([@rwjblue](https://github.com/rwjblue)) | ||
#### Committers: 3 | ||
- Alex Kanunnikov ([@lifeart](https://github.com/lifeart)) | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | ||
## v4.1.6 (2020-09-28) | ||
@@ -2,0 +15,0 @@ |
{ | ||
"name": "ember-template-recast", | ||
"version": "4.1.6", | ||
"version": "4.1.7", | ||
"description": "Non-destructive template transformer.", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@glimmer/syntax": "^0.59.0", | ||
"@glimmer/syntax": "^0.62.1", | ||
"async-promise-queue": "^1.0.5", | ||
@@ -40,3 +40,3 @@ "colors": "^1.4.0", | ||
"tmp": "^0.2.1", | ||
"workerpool": "^6.0.0" | ||
"workerpool": "^6.0.1" | ||
}, | ||
@@ -46,4 +46,4 @@ "devDependencies": { | ||
"common-tags": "^1.8.0", | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
@@ -50,0 +50,0 @@ "eslint-plugin-prettier": "^3.1.4", |
@@ -152,1 +152,34 @@ # ember-template-recast | ||
``` | ||
## SemVer Policy | ||
Due to usage of TypeScript and bundling external APIs this project has somewhat | ||
unique SemVer commitments. A high level summary is: | ||
### Major Version | ||
The following are scenarios that would cause a major version (aka breaking change) release: | ||
* Dropping support for Node versions (e.g. dropping Node 10 support) | ||
* Non-additive changes to the underlying AST (which we bundle from `@glimmer/syntax`) | ||
* Breaking changes to the `@glimmer/syntax` builder APIs | ||
### Minor Version | ||
The following are scenarios that would cause a minor version (aka new feature) release: | ||
* Changes to TypeScript version used internally by `ember-template-recast` | ||
* Changes to make the types used by `ember-template-recast` to be more accurate | ||
(e.g. narrowing / broadening of previously published types). | ||
* Adding new features | ||
### Patch Version | ||
The following are scenarios that would cause a patch release: | ||
* Bug fixes to internal re-writing logic | ||
* Bug fix releases of `@glimmer/syntax` | ||
## License | ||
This project is distributed under the MIT license, see [LICENSE](./LICENSE) for details. |
@@ -46,12 +46,7 @@ function sourceForLoc(sourceLines, loc) { | ||
function sortByLoc(a, b) { | ||
// sort b higher than synthetic a | ||
if (isSynthetic(a)) { | ||
return 1; | ||
// be conservative about the location where a new node is inserted | ||
if (isSynthetic(a) || isSynthetic(b)) { | ||
return 0; | ||
} | ||
// sort a higher than synthetic b | ||
if (isSynthetic(b)) { | ||
return -1; | ||
} | ||
if (a.loc.start.line < b.loc.start.line) { | ||
@@ -58,0 +53,0 @@ return -1; |
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
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
72871
185
2
1301
+ Added@glimmer/interfaces@0.62.5(transitive)
+ Added@glimmer/syntax@0.62.5(transitive)
+ Added@glimmer/util@0.62.5(transitive)
+ Added@handlebars/parser@1.1.0(transitive)
- Removed@glimmer/interfaces@0.59.2(transitive)
- Removed@glimmer/syntax@0.59.2(transitive)
- Removed@glimmer/util@0.59.2(transitive)
- Removedhandlebars@4.7.8(transitive)
- Removedminimist@1.2.8(transitive)
- Removedneo-async@2.6.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removeduglify-js@3.19.3(transitive)
- Removedwordwrap@1.0.0(transitive)
Updated@glimmer/syntax@^0.62.1
Updatedworkerpool@^6.0.1