ember-cli-typescript

Use TypeScript in your Ember.js apps!

MIT License

Downloads
2M
Stars
364
Committers
67

Bot releases are hidden (Show)

ember-cli-typescript - The order of things matters

Published by chriskrycho almost 6 years ago

What Changed?

For details on the changes since 1.x, see the 2.0.0-beta.1 release notes.

Fixed πŸ”§

  • Ensure consistency with tsc re: class property initialization order (#365)

Upgrading βš™οΈ

ember install ember-cli-typescript@beta

Contributors πŸ™‡

Thanks to everyone who opened/discovered an issue we fixed or PR we merged in this release!

  • @runspired
  • @dfreeman
ember-cli-typescript - Babeling in Parallel

Published by dfreeman almost 6 years ago

What Changed?

For details on the changes since 1.x, see the 2.0.0-beta.1 release notes.

Fixed πŸ”§

  • Ensure that ember-cli-typescript doesn't interfere with parallelizing the Babel transpilation process (#351)

Upgrading βš™οΈ

ember install ember-cli-typescript@beta

Contributors πŸ™‡

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @dfreeman
ember-cli-typescript - Polish, polish, polish.

Published by chriskrycho almost 6 years ago

What Changed?

Just some fixes and polishes!

Fixed πŸ”§

  • We now provide better user feedback when installing ember-cli-typescript from a git version (i.e. for testing prereleases)
  • Updated to ember-cli-typescript-blueprints so types in generated files correctly match the latest Ember Data types
  • Updated to latest Ember CLI blueprint (as of 3.5.0)

Upgrading βš™οΈ

ember install [email protected]

Contributors πŸ™‡β€β™€οΈ

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @mike-north
  • @dfreeman
ember-cli-typescript - 2.0.0 Beta 1: Hello, Babel!

Published by chriskrycho almost 6 years ago

What Changed?

This is a major release with πŸ’₯ breaking changes πŸ’₯! However, most apps will compile with minimal (or no) changes! πŸŽ‰ They'll also tend to compile much faster in many cases. ⚑️

We now use Babel 7's support for TypeScript to build apps and addons. Most of the horrible hacks we had to do before are now gone, and the error outputs you will see for type errors are much nicer as well. (As a particular note, we should work better with ember-auto-import now, since we're just part of the normal Broccoli/Babel pipeline Ember CLI uses.)

THIS IS A BETA! Please test this out in your apps! Please do not use this for your production apps!

Added ⭐️

  • Much nicer reporting of type errors both in the console and in your browser
  • Type errors now use the "pretty" type error format stabilized in TypeScript 2.9

Changed πŸ’₯

  • We now build the application using Babel 7's TypeScript plugin. This has a few important limitations – some of them bugs (linked below); others are conscious decisions on the part of Babel. The changes:

    • const enum types are unsupported. You should switch to constants or regular enums.

    • trailing commas after rest function parameters (function foo(...bar[],) {}) are disallowed by the ECMAScript spec, so Babel also disallows them.

    • re-exports of types have to be disambiguated to be types, rather than values. Neither of these will work:

      export { FooType } from 'foo';
      
      import { FooType } from 'foo';
      export { FooType };
      

      In both cases, Babel attempts to emit a value export, not just a type export, and fails because there is no actual value to emit. You can do this instead as a workaround:

      import * as Foo from 'foo';
      export type FooType = Foo.FooType;
      
    • this types in ES5 getters and setters are do not work (babel/babel#8069)

    • destructuring of parameters in function signatures currently do not work (babel/babel#8099)

    Other bugs you should be aware of:

    • if an enum has a member with the same name as an imported type (babel/babel#8881), it will fail to compile
  • ember-cli-typescript must be in dependencies instead of devDependencies for addons, since we now hook into the normal Broccoli + Babel build pipeline instead of doing an end-run around it

  • Addons can no longer use .ts in app, because an addon's app directory gets merged with and uses the host's (i.e. the other addon or app's) preprocessors, and we cannot guarantee the host has TS support. Note that in-repo-addons will continue to work for in-repo addons because of the app build works with the host's (i.e. the app's, not the addon's) preprocessors.

  • Apps need to use .js for overrides in app, since the different file extension means apps no long consistently "win" over addon versions (a limitation of how Babel + app merging interact) – note that this won’t be a problem with Module Unification apps

Fixed πŸ”§

  • Type errors now show properly in the browser when running tests

Upgrading βš™οΈ

ember install ember-cli-typescript@beta

Contributors πŸ™‡

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @dfreeman
ember-cli-typescript - We're *not* the center of the universe?

Published by dfreeman about 6 years ago

What Changed?

Fixed

  • We no longer claim the absolute highest priority when ember-cli is selecting blueprints (see #323)

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @mike-north
ember-cli-typescript - Backport: don't blow up system temp directory

Published by chriskrycho about 6 years ago

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]
ember-cli-typescript - Backport: don't blow up system temp directory

Published by chriskrycho about 6 years ago

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]
ember-cli-typescript - Backport: don't blow up system temp directory

Published by chriskrycho about 6 years ago

What changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Upgrading

ember install [email protected]
ember-cli-typescript - Don't reuse system temp directories!

Published by chriskrycho about 6 years ago

What Changed?

Fixed

  • We now correctly clean up the system temp directory we create during builds.

Changed

  • We reference the Discord channel instead of Slack.
  • [Internal] We enabled writing code for this addon itself in TypeScript.

Upgrading

ember install ember-cli-typescript@latest
ember-cli-typescript -

Published by dfreeman about 6 years ago

What Changed?

Fixed

  • Ensure TS blueprints always take precedence over JS ones (#253)

Upgrading

ember install ember-cli-typescript@latest
ember-cli-typescript - Silence is Golden

Published by dfreeman about 6 years ago

What Changed?

Fixed

  • Avoid warnings in Ember CLI 3.4+ about missing package directories for our in-repo testing addons (#252)

Changed

Upgrading

ember install ember-cli-typescript@latest

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @mike-north
  • @jasonmevans
ember-cli-typescript - Cow says "MU", tests get support and types

Published by jamescdavis about 6 years ago

What Changed?

Fixed

  • Ignore node_modules hoisted above project root (e.g. yarn workspaces)

Added

Upgrading

ember install ember-cli-typescript@latest

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @allenylzhou
  • @happycollision
  • @buschtoens
  • @chriskrycho
  • @dfreeman
  • @mike-north
ember-cli-typescript -

Published by jamescdavis about 6 years ago

What Changed?

Fixed

  • Watcher has been "de-simplified" to make it more consistent with how tsc's own watcher works and prevent rebuild issues.
  • ember-cli-typescript will now run after ember-decorators, ensuring that the ember-cli-typescript blueprints override ember-decorators'.

Changed

  • Improved documentation regarding service injection.

Added

  • Getting Help section to readme.
  • Github issue templates.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @dfreeman
  • @pixelhandler
  • @BryanCrotaz
  • @mike-north
  • @josemarluedke
  • @Bouke
ember-cli-typescript -

Published by dfreeman over 6 years ago

What Changed?

Fixed

  • TypeScript 2.9 no longer causes infinite error loops and/or fails to trigger rebuilds.

Upgrading

ember install ember-cli-typescript@latest

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • @mschorsch
ember-cli-typescript -

Published by chriskrycho over 6 years ago

What Changed?

Fixed

  • No longer requires TypeScript before it has been installed.
  • Properly ignore the root across platforms.

Upgrading

ember install ember-cli-typescript@latest

Please open an issue with "1.3.1" in the title if you have any new errors!

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • Dan Freeman (@dfreeman)
  • Bill Heaton (@pixelhandler)
  • James Alexander Rosen (@jamesarosen)
ember-cli-typescript - Bye Bye Bye

Published by jamescdavis over 6 years ago

This release says bye to compilation churn, bye to spurious rebuilds and errors, and bye to relaxed TypeScript checks by default. Great efforts were made to get Broccoli and the TypeScript compiler "NSYNC".

Note: As of this release, re-running the blueprint on an existing project (e.g. ember generate ember-cli-typescript) will update tsconfig.json with maximum compiler strictness settings, which are likely to result in new TypeScript errors being reported. You can always turn these checks off individually, but they are now on by default.

What Changed?

Added

  • This addon now supports failing the build when there are type errors, using noEmitOnError: true in tsconfig.json.

Changed

  • Clarified instructions for sourcemaps.

Fixed

  • TypeScript no longer churns on every change in the tmp directory.
  • Make sure ember-cli-typescript is a dev dependency when generating in-repo-addons, so their TypeScript gets built correctly.
  • Eliminated some lint errors in the build.
  • Synchronization between tsc and the broccoli build process has been improved, reducing spurious rebuilds (and works properly on Windows).
  • Updated the generated tsconfig.json to use the maximum strictness we can with Ember's typings.
  • Simplified the file watching implementation, fixing some odd behavior when trees of files were deleted or moved all at once.

Upgrading

ember install ember-cli-typescript@latest

Please open an issue with "1.3.0" in the title if you have any new errors!

Contributors

Thanks to everyone who opened an issue we fixed or PR we merged in this release!

  • Dan Freeman (@dfreeman)
  • Frank Tan (@tansongyang)
  • Jacob (@jacobq)
  • John Ruble (@jrr)
  • Per Lundberg (@perlun)
  • Martin Feckie (@mfeckie)
  • Chris Santero (@csantero)
ember-cli-typescript - Keep it simple

Published by dfreeman over 6 years ago

Fixed

  • Simplified the file watching implementation, fixing some odd behavior when trees of files were deleted or moved all at once.
ember-cli-typescript - A strict(er) teacher

Published by chriskrycho over 6 years ago

What Changed?

Fixed

  • Updated the generated tsconfig.json to use the maximum strictness we can with Ember's typings.

Upgrading

ember install ember-cli-typescript@beta

Please open an issue with "1.3.0-beta.4" in the title if you have any new errors!

ember-cli-typescript - In sync… on Windows, too

Published by chriskrycho over 6 years ago

What Changed?

Fixed

  • The synchronization tweak made in 1.3.0-beta.2 now works properly on Windows.

Upgrading

ember install ember-cli-typescript@beta

Please open an issue with "1.3.0-beta.3" in the title if you have any new errors!

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

  • Frank Tan (@tansongyang)
ember-cli-typescript - In Sync

Published by dfreeman over 6 years ago

What Changed?

Fixed

  • Synchronization between tsc and the broccoli build process has been improved, reducing spurious rebuilds.

Upgrading

ember install ember-cli-typescript@beta

Please open an issue with "1.3.0-beta.2" in the title if you have any new errors!

Contributors

Everyone who opened an issue we fixed or PR we merged in this release!

  • Chris Santero (@csantero)
Package Rankings
Top 1.25% on Npmjs.org
Top 9.55% on Proxy.golang.org
Badges
Extracted from project README
Actions Status Ember Observer Score TS Version