Use TypeScript in your Ember.js apps!
MIT License
Bot releases are hidden (Show)
Published by gitKrystan 8 months ago
Published by chriskrycho almost 2 years ago
Published by chriskrycho almost 2 years ago
@types/ember__destroyable
when running the default blueprint (#1526), @bertdeblock
import/newline-after-import
lint violation in global.d.ts
(#1520), @bmish
testing.md
to refer to ember-cli-htmlbars
instead of ember-cli-htmlbars-inline-precompile
(#1517), @ChristopheTiet
@types
dependencies to latest (#1531), @bertdeblock and @chriskrycho
ember-cli-htmlbars
rather than htmlbars-inline-precompile
in blueprints (#1519)import/newline-after-import
lint violation in global.d.ts
(#1520)no-use-before-define
lint violation in environment.d.ts
(#1521)@types/ember
to installed packages from blueprint (#1508)@tsconfig/ember
(#1507)Published by chriskrycho over 2 years ago
Full Changelog: https://github.com/typed-ember/ember-cli-typescript/compare/v5.0.0...v5.1.0
Published by chriskrycho over 2 years ago
This now requires Node 12+! That's the only technically breaking change.
locationType
for Ember v4 (#1466)ember-test-helpers
-> @ember/test-helpers
(#1473)locationType
by @NullVoxPopuli in https://github.com/typed-ember/ember-cli-typescript/pull/1466
moduleName()
to determine addon's referenced name. by @timlindvall in https://github.com/typed-ember/ember-cli-typescript/pull/1476
Full Changelog: https://github.com/typed-ember/ember-cli-typescript/compare/v4.2.1...v5.0.0
Published by jamescdavis over 3 years ago
Published by jamescdavis about 4 years ago
ember-cli-typescript no longer manages your Babel configuration, because ember-cli-babel does. This is an early step toward officially supporting TS across the Ember ecosystem. It also means that we now use Babel’s default configuration, which also comes with a small change to align better with the JavaScript spec around class fields.
For most cases, you won’t notice the difference, but if you were previously using TypeScript’s constructor property shorthand to define default values and using those values in a class field initializer, like this—
class Demo {
constructor(public name = '') {}
public nameLen = this.name.length;
}
—you will find that the initializer now fails. This is because the spec requires that class field initializers run before anything in the class constructor’s body except a super
call, and TS’s custom syntax here is not part of the spec, and Babel therefore runs it after all other class field initializers.
This particular pattern was always a refactoring hazard: class field initializers should not refer to this
because they can be broken by unrelated changes in surprising ways. This particular code will now not work at all, so you will need to migrate away from it. You can replace it with this code instead:
class Demo {
public nameLen: number;
constructor(public name = '') {
this.nameLen = this.name.length;
}
}
--path
([#1148])tsconfig.json
blueprint target
value to 2020
([#1108])prepack
and postpack
instead of prepublishOnly
and postpublish
([#1196])willTypecheck
s on Linux ([#1198]).ts
files will be ignored completely!ember-auto-import
, make sure you are using at least ember-auto-import@^1.6.0.ember install ember-cli-typescript@^4.0.0
or use your package manager to upgrade to ember-cli-typescript@^4.0.0
directly and skip the blueprint.Published by jamescdavis over 4 years ago
--path
(#1148)tsconfig.json
blueprint target
value to 2020
(#1108)prepack
and postpack
instead of prepublishOnly
and postpublish
(#1196)willTypecheck
s on Linux (#1198).ts
files will be ignored completely!ember-auto-import
, make sure you are using at least ember-auto-import@^1.6.0.ember install ember-cli-typescript@next
or use your package manager to upgrade to ember-cli-typescript@next
directly and skip the blueprint.Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by jamescdavis over 4 years ago
ember install ember-cli-typescript@latest
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by jamescdavis over 4 years ago
ember install ember-cli-typescript@latest
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by jamescdavis over 4 years ago
ember-cli-babel
will handle this now) (#1018)ember install ember-cli-typescript@alpha
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by jamescdavis almost 5 years ago
global.d.ts
blueprint (#866)ts:precompile
fails (#984)ember install ember-cli-typescript@latest
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by dfreeman almost 5 years ago
ember install ember-cli-typescript@latest
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
Published by chriskrycho about 5 years ago
ember-cli-typescript
now installs itself into dependencies
regardless of what ember install
command you use. [#623]tsconfig.json
. (#826)Thanks to #623, whether in an app or an addon you can simply run:
ember install ember-cli-typescript@latest
Thanks to everyone who contributed to this release in any way! In randomly shuffled order:
@babel/plugin-transform-typescript
version pending a fix to babel/babel#10162 (#751)Published by chriskrycho over 5 years ago
For apps:
ember install ember-cli-typescript@latest
For addons:
ember install ember-cli-typescript@latest --save
Published by dfreeman over 5 years ago
The bullets below comprise a Greatest Hits list of the fixes and additions from 1.x, but the 2.0 release constitutes a ground-up rewrite of how we handle both transpiling and typechecking TypeScript code. For a full guide for upgrading from 1.x to 2.0, see the Upgrade Notes document.
ember-auto-import
(#287)tsc
to panic (#314)ember serve
.See the 2.0 Upgrade Notes for detailed instructions on upgrading from 1.x to 2.0.
Thanks to everyone who opened/discovered an issue we fixed or PR we merged over the course of our 2.0 stabilization process!
Published by chriskrycho almost 6 years ago
For details on the changes since 1.x, see the 2.0.0-beta.1
release notes.
--isolatedModules
back to false
in both precompilation and generated blueprintsdevDependencies
instead of dependencies
For apps:
ember install ember-cli-typescript@next
For addons:
ember install -S ember-cli-typescript@next
Thanks to everyone who opened/discovered an issue we fixed or PR we merged in this release!
Published by chriskrycho almost 6 years ago
For details on the changes since 1.x, see the 2.0.0-beta.1
release notes.
tsconfig.json
file's paths
key to copy type definitions during precompile, rather than assuming Ember project structure.tmp
directory.ember install ember-cli-typescript@next
Thanks to everyone who opened/discovered an issue we fixed or PR we merged in this release!