Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-typescript

Package Overview
Dependencies
Maintainers
7
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-typescript - npm Package Compare versions

Comparing version 3.0.0 to 3.1.1

20

CHANGELOG.md

@@ -9,4 +9,18 @@ # Changelog

## [3.0.0] - 2019-08-30
## [3.1.1] - 2019-11-06
### Added ⭐️
- Adds appropriate Babel plugins to support the [nullish coalescing][nullish-coalescing] and [optional chaining][optional-chaining] proposals, both supported in TypeScript [starting with 3.7][ts-3.7]. ([#914], [#936])
[nullish-coalescing]: https://github.com/tc39/proposal-nullish-coalescing
[optional-chaining]: https://github.com/tc39/proposal-optional-chaining
[ts-3.7]: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/
[#914]: https://github.com/typed-ember/ember-cli-typescript/pull/914
[#936]: https://github.com/typed-ember/ember-cli-typescript/pull/936
### Added ⭐️
- In addons, `ember-cli-typescript` now installs itself into `dependencies` regardless of what `ember install` command you use. [#623]
### Breaking 💥

@@ -19,2 +33,3 @@

[MU]: https://blog.emberjs.com/2019/03/11/update-on-module-unification-and-octane.html
[#623]: https://github.com/typed-ember/ember-cli-typescript/issues/623
[#707]: https://github.com/typed-ember/ember-cli-typescript/issues/707

@@ -563,3 +578,4 @@

[ember-cli-typify]: https://github.com/winding-lines/ember-cli-typify
[unreleased]: https://github.com/typed-ember/ember-cli-typescript/compare/v3.0.0...HEAD
[unreleased]: https://github.com/typed-ember/ember-cli-typescript/compare/v3.1.1...HEAD
[3.1.1]: https://github.com/typed-ember/ember-cli-typescript/compare/v3.0.0...v3.1.1
[3.0.0]: https://github.com/typed-ember/ember-cli-typescript/compare/v2.0.2...v3.0.0

@@ -566,0 +582,0 @@ [2.0.2]: https://github.com/typed-ember/ember-cli-typescript/compare/v2.0.1...v2.0.2

25

js/addon.js

@@ -69,10 +69,13 @@ "use strict";

this._registerBabelExtension();
let pluginTarget = this._getConfigurationTarget();
if (!ember_cli_babel_plugin_helpers_1.hasPlugin(pluginTarget, '@babel/plugin-transform-typescript')) {
// Needs to come after the class properties plugin (see tests/unit/build-test.ts -
// "property initialization occurs in the right order")
ember_cli_babel_plugin_helpers_1.addPlugin(pluginTarget, require.resolve('@babel/plugin-transform-typescript'), {
after: ['@babel/plugin-proposal-class-properties'],
});
}
// As of 3.7, TS supports the optional chaining and nullish coalescing proposals.
// https://devblogs.microsoft.com/typescript/announcing-typescript-3-7-beta/
// Since we can't necessarily know what version of TS an addon was developed with,
// we unconditionally add the Babel plugins for both proposals.
this._addBabelPluginIfNotPresent('@babel/plugin-proposal-optional-chaining');
this._addBabelPluginIfNotPresent('@babel/plugin-proposal-nullish-coalescing-operator');
// Needs to come after the class properties plugin (see tests/unit/build-test.ts -
// "property initialization occurs in the right order")
this._addBabelPluginIfNotPresent('@babel/plugin-transform-typescript', {
after: ['@babel/plugin-proposal-class-properties'],
});
},

@@ -143,2 +146,8 @@ shouldIncludeChildAddon(addon) {

},
_addBabelPluginIfNotPresent(pluginName, pluginOptions) {
let target = this._getConfigurationTarget();
if (!ember_cli_babel_plugin_helpers_1.hasPlugin(target, pluginName)) {
ember_cli_babel_plugin_helpers_1.addPlugin(target, pluginName, pluginOptions);
}
},
_addTypecheckMiddleware(app) {

@@ -145,0 +154,0 @@ let workerPromise = this._getTypecheckWorker();

{
"name": "ember-cli-typescript",
"version": "3.0.0",
"version": "3.1.1",
"description": "Allow ember apps to use typescript files.",

@@ -42,7 +42,9 @@ "keywords": [

"dependencies": {
"@babel/plugin-transform-typescript": "~7.5.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-transform-typescript": "~7.7.0",
"ansi-to-html": "^0.6.6",
"debug": "^4.0.0",
"ember-cli-babel-plugin-helpers": "^1.0.0",
"execa": "^2.0.0",
"execa": "^3.0.0",
"fs-extra": "^8.0.0",

@@ -56,43 +58,43 @@ "resolve": "^1.5.0",

"devDependencies": {
"@commitlint/cli": "8.1.0",
"@commitlint/config-conventional": "8.1.0",
"@ember/optional-features": "0.7.0",
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@ember/optional-features": "1.1.0",
"@typed-ember/renovate-config": "1.2.1",
"@types/chai": "4.2.0",
"@types/chai": "4.2.4",
"@types/chai-as-promised": "7.1.2",
"@types/console-ui": "2.2.2",
"@types/console-ui": "2.2.3",
"@types/core-object": "3.0.1",
"@types/debug": "4.1.5",
"@types/ember": "3.1.0",
"@types/ember-qunit": "3.4.6",
"@types/ember": "3.1.1",
"@types/ember-qunit": "3.4.7",
"@types/esprima": "4.0.2",
"@types/express": "4.17.1",
"@types/fs-extra": "8.0.0",
"@types/fs-extra": "8.0.1",
"@types/got": "8.3.5",
"@types/mocha": "5.2.7",
"@types/node": "9.6.51",
"@types/node": "9.6.55",
"@types/qunit": "2.9.0",
"@types/resolve": "0.0.8",
"@types/semver": "6.0.1",
"@types/semver": "6.2.0",
"@types/tmp": "0.1.0",
"@typescript-eslint/eslint-plugin": "2.0.0",
"@typescript-eslint/parser": "2.0.0",
"@typescript-eslint/eslint-plugin": "2.6.1",
"@typescript-eslint/parser": "2.6.1",
"broccoli-asset-rev": "3.0.0",
"co": "4.6.0",
"commitlint-azure-pipelines-cli": "1.0.2",
"conventional-changelog-cli": "2.0.23",
"ember-cli": "3.12.0",
"ember-cli-addon-docs": "0.6.14",
"ember-cli-addon-docs-esdoc": "0.2.2",
"conventional-changelog-cli": "2.0.25",
"ember-cli": "3.13.1",
"ember-cli-addon-docs": "0.6.15",
"ember-cli-addon-docs-esdoc": "0.2.3",
"ember-cli-app-version": "3.2.0",
"ember-cli-babel": "7.11.0",
"ember-cli-babel": "7.12.0",
"ember-cli-blueprint-test-helpers": "0.19.2",
"ember-cli-dependency-checker": "3.2.0",
"ember-cli-deploy": "1.0.2",
"ember-cli-deploy-build": "1.1.1",
"ember-cli-deploy-git": "1.3.3",
"ember-cli-deploy-build": "2.0.0",
"ember-cli-deploy-git": "1.3.4",
"ember-cli-deploy-git-ci": "1.0.1",
"ember-cli-htmlbars": "3.1.0",
"ember-cli-htmlbars-inline-precompile": "2.1.0",
"ember-cli-inject-live-reload": "2.0.1",
"ember-cli-htmlbars": "4.0.8",
"ember-cli-htmlbars-inline-precompile": "3.0.1",
"ember-cli-inject-live-reload": "2.0.2",
"ember-cli-release": "0.2.9",

@@ -102,33 +104,33 @@ "ember-cli-sri": "2.1.1",

"ember-cli-uglify": "3.0.0",
"ember-cli-update": "0.42.1",
"ember-cli-update": "0.43.8",
"ember-disable-prototype-extensions": "1.1.3",
"ember-export-application-global": "2.0.0",
"ember-load-initializers": "2.1.0",
"ember-load-initializers": "2.1.1",
"ember-maybe-import-regenerator": "0.1.6",
"ember-qunit": "4.5.1",
"ember-resolver": "5.2.1",
"ember-source": "3.12.0",
"ember-qunit": "4.6.0",
"ember-resolver": "5.3.0",
"ember-source": "3.14.1",
"ember-try": "1.2.1",
"eslint": "6.3.0",
"eslint-plugin-ember": "7.0.0",
"eslint-plugin-node": "9.2.0",
"eslint-plugin-prettier": "3.1.0",
"eslint": "6.6.0",
"eslint-plugin-ember": "7.3.0",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-prettier": "3.1.1",
"esprima": "4.0.1",
"fixturify": "1.2.0",
"got": "8.3.2",
"handlebars": "4.1.2",
"husky": "3.0.4",
"handlebars": "4.5.1",
"husky": "3.0.9",
"in-repo-a": "link:tests/dummy/lib/in-repo-a",
"in-repo-b": "link:tests/dummy/lib/in-repo-b",
"loader.js": "4.7.0",
"mocha": "6.2.0",
"mocha": "6.2.2",
"prettier": "1.18.2",
"qunit-dom": "0.9.0",
"qunit-dom": "0.9.1",
"testdouble": "3.12.4",
"tmp": "0.1.0",
"ts-node": "8.3.0",
"typescript": "3.6.2"
"ts-node": "8.4.1",
"typescript": "3.7.2"
},
"resolutions": {
"@types/ember": "3.1.0",
"@types/ember": "3.1.1",
"@types/ember__string": "3.0.6",

@@ -173,5 +175,5 @@ "hawk": "7"

"volta": {
"node": "10.15.3",
"yarn": "1.15.2"
"node": "10.17.0",
"yarn": "1.19.1"
}
}

@@ -14,4 +14,2 @@ <center><h1>ember-cli-typescript</h1></center>

- [Installation and Setup](#installation-and-setup)
- [In apps](#in-apps)
- [In addons](#in-addons)
- [Upgrading from 1.x](#upgrading-from-1x)

@@ -21,4 +19,2 @@ - [Update ember-cli-babel](#update-ember-cli-babel)

- [Update ember-cli-typescript](#update-ember-cli-typescript)
- [In apps](#in-apps-1)
- [In addons](#in-addons-1)
- [Account for addon build pipeline changes](#account-for-addon-build-pipeline-changes)

@@ -25,0 +21,0 @@ - [Account for TS → Babel issues](#account-for-ts--babel-issues)

Sorry, the diff of this file is not supported yet

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