Ember Cli Typescript Versions Save

Use TypeScript in your Ember.js apps!

v5.3.0

2 months ago

Changed ๐Ÿ’ฅ

Added โญ๏ธ

Fixed ๐Ÿ”ง

  • #1537 Airlift updatePathsForAddon from the blueprints package (@dfreeman)

Under the hood ๐Ÿš—

Committers: 11

v5.2.1

1 year ago

Fixed ๐Ÿ”ง

  • Add back missing function expected from ember-cli-typescript-blueprints #1537, (@dfreeman)

v5.2.0

1 year ago

Added โญ๏ธ

Fixed ๐Ÿ”ง

  • Fix import/newline-after-import lint violation in global.d.ts (#1520), @bmish
  • Fix no-use-before-define lint violation in environment.d.ts (#1521), @bmish

Documentation ๐Ÿ“–

  • Update testing.md to refer to ember-cli-htmlbars instead of ember-cli-htmlbars-inline-precompile (#1517), @ChristopheTiet
  • docs: use prepack and postpack instead of prepublishOnly and postpublish (#1527), @bertdeblock
  • Reflect the introduction of Component Signatures (#1530), @rooman

Under the hood ๐Ÿš—

v5.1.1

1 year ago

Fixed ๐Ÿ”ง

  • Use ember-cli-htmlbars rather than htmlbars-inline-precompile in blueprints (#1519)
  • Fix import/newline-after-import lint violation in global.d.ts (#1520)
  • Fix no-use-before-define lint violation in environment.d.ts (#1521)
  • Add @types/ember to installed packages from blueprint (#1508)
  • Update blueprint to use @tsconfig/ember (#1507)
  • Clarify babel version error message (#1500)

Documentation ๐Ÿ“–

  • Update discord channel name, fix typos (#1506)
  • Fix spelling resolveable -> resolvable (#1504)

v5.1.0

2 years ago

Overview

Added โญ๏ธ

  • Update tsconfig and corresponding docs (#1488)

Fixed ๐Ÿ”ง

  • Ignore no-empty-interface in the default app index.d.ts (#1484)

Documentation ๐Ÿ“–

  • docs: Remove references to DS and DS imports. (#1483)
  • Encourage the use of type-only imports (#1485)
  • typo: comment should be pluralized. (#1489)
  • docs: fix typos (#1490)
  • docs: Add link to transforms page (#1491)

Full Change List

New Contributors

Full Changelog: https://github.com/typed-ember/ember-cli-typescript/compare/v5.0.0...v5.1.0

v5.0.0

2 years ago

Overview

Changed ๐Ÿ’ฅ

This now requires Node 12+! That's the only technically breaking change.

  • Update types & ember to 4.x(#1472)

Fixed ๐Ÿ”ง

  • Fix type of locationType for Ember v4 (#1466)
  • fix: Use moduleName() to determine addon's referenced name. (#1476)

Documentation ๐Ÿ“–

  • docs: fix links to tsconfig.json blueprint (#1445)
  • ember-test-helpers -> @ember/test-helpers (#1473)

Under the hood ๐Ÿš—

  • Update .npmignore to ignore .github and test folders (#1460)

Full change list

New Contributors

Full Changelog: https://github.com/typed-ember/ember-cli-typescript/compare/v4.2.1...v5.0.0

v4.1.0

3 years ago

Added โญ๏ธ

  • Install @types/ember packages separately via blueprint (#1383)

Documentation ๐Ÿ“–

  • Octane and much polish and clarification (#935)
  • Fix working with ember outline links (#1394)
  • Docs fixes (#1395)
  • Fix typos in the Ember Routes docs (#1400)

Under the hood ๐Ÿš—

  • Fix qunit types conflict (#1344)
  • Bump @types/ember-qunit & @types/qunit to resolve types conflict (#1380)
  • Fix commitlint action config (#1388)
  • Dependency updates (4.1.0-deps-bumps)

v4.0.0

3 years ago

Overview

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;
  }
}

Changelog

Breaking ๐Ÿ’ฅ

  • Drop support for Node 8 (#1017)
  • Don't configure Babel for TS transpilation (#1018)

Added โญ๏ธ

  • Don't run type-checking middleware when an existing build is used via --path ([#1148])

Changed ๐Ÿ’ฅ

  • Update tsconfig.json blueprint target value to 2020 ([#1108])
  • Use prepack and postpack instead of prepublishOnly and postpublish ([#1196])

Fixed ๐Ÿ”ง

  • Bring apps closer to type-checking out of the box ([#1169])

Under the hood ๐Ÿš—

  • Upgrade โœจ Prettier โœจ to a version that supports optional chaining and nullish coalescing (#1018)
  • Add test for optional chaining and nullish coalescing (#1018)
  • Add test for class field declaration (#1018)
  • Add RFCs to repo ([#1157])
  • Fix description of ts:precompile ([#1162])
  • Fix dead link to "packages this addon installs" ([#1164])
  • Get CI passing ([#1167])
  • Avoid false-positive willTypechecks on Linux ([#1198])
  • Dependency updates (4.0.0-deps-bumps, [#1191])

Upgrading โš™๏ธ

  • Make sure you are using at least ember-cli-babel@^7.17.0 or your .ts files will be ignored completely!
  • If you are using ember-auto-import, make sure you are using at least ember-auto-import@^1.6.0.
  • Run 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.

v4.0.0-rc.1

3 years ago

Added โญ๏ธ

  • Don't run type-checking middleware when an existing build is used via --path (#1148)

Changed ๐Ÿ’ฅ

  • Update tsconfig.json blueprint target value to 2020 (#1108)
  • Use prepack and postpack instead of prepublishOnly and postpublish (#1196)

Fixed ๐Ÿ”ง

  • Bring apps closer to type-checking out of the box (#1169)

Under the hood ๐Ÿš—

Upgrading โš™๏ธ

  • Make sure you are using at least ember-cli-babel@^7.17.0 or your .ts files will be ignored completely!
  • If you are using ember-auto-import, make sure you are using at least ember-auto-import@^1.6.0.
  • Run ember install ember-cli-typescript@next or use your package manager to upgrade to ember-cli-typescript@next directly and skip the blueprint.

Contributors ๐Ÿ™‡

Thanks to everyone who contributed to this release in any way! In randomly shuffled order:

  • @mrloop
  • @chriskrycho
  • @hjdivad
  • @rwjblue
  • @jamescdavis
  • @dfreeman
  • @Bouke

v3.1.4

3 years ago

Fixed ๐Ÿ”ง

  • Use temp dir in project for precompile (#1153)

Under the hood ๐Ÿš—

Upgrading โš™๏ธ

ember install ember-cli-typescript@latest

Contributors ๐Ÿ™‡

Thanks to everyone who contributed to this release in any way! In randomly shuffled order:

  • @jamescdavis
  • @dfreeman
  • @chriskrycho