Socket
Socket
Sign inDemoInstall

ember-template-recast

Package Overview
Dependencies
Maintainers
7
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-template-recast - npm Package Compare versions

Comparing version 4.1.6 to 4.1.7

13

CHANGELOG.md

@@ -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 @@

10

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc