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 - v5.3.0 (Stop whining about ember-cli-babel 8) Latest Release

Published by gitKrystan 8 months ago

Changed 💥

Added ⭐️

Fixed 🔧

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

Under the hood 🚗

Committers: 11

ember-cli-typescript - I guess you get one more chance (…with Node 12)

Published by chriskrycho almost 2 years ago

Fixed 🔧

  • Add back missing function expected from ember-cli-typescript-blueprints #1537, (@dfreeman)
ember-cli-typescript - End of the line (…for Node 12)

Published by chriskrycho almost 2 years 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 🚗

ember-cli-typescript -

Published by dfreeman about 2 years 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)
ember-cli-typescript - Docs ’n’ blueprints

Published by chriskrycho over 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

ember-cli-typescript - Ember 4 support and addon.moduleName() shenanigans

Published by chriskrycho over 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

ember-cli-typescript - Auto-import suggestions are handy

Published by jamescdavis over 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)
ember-cli-typescript - No relation to TypeScript 4.0

Published by jamescdavis about 4 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.
ember-cli-typescript - Ready for prime time?

Published by jamescdavis over 4 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
ember-cli-typescript - Keep it local

Published by jamescdavis over 4 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
ember-cli-typescript - Collisions are dangerous

Published by jamescdavis over 4 years ago

Fixed 🔧

  • Issue a warning if we detect a .js/.ts file collision (#1046)

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:

  • @dfreeman
  • @jamescdavis
  • @chriskrycho
ember-cli-typescript - Let's try handing over the Babel

Published by jamescdavis over 4 years ago

What Changed?

Breaking 💥

  • Drop support for Node 8 (#1017)
  • Don't configure Babel for TypeScript transpilation (ember-cli-babel will handle this now) (#1018)

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)

Upgrading ⚙️

ember install ember-cli-typescript@alpha

Contributors 🙇

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

  • @dfreeman
  • @chriskrycho
  • @jamescdavis
ember-cli-typescript - Errors are useful

Published by jamescdavis almost 5 years ago

What Changed?

Fixed 🔧

  • Remove trailing space in the global.d.ts blueprint (#866)
  • Ensure we register Babel plugins with their full path (#946)
  • Ensure errors are emitted when ts:precompile fails (#984)

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:

  • @dfreeman
  • @chriskrycho
  • @scottkidder
  • @jamescdavis
ember-cli-typescript - If you like ⛓

Published by dfreeman almost 5 years ago

What Changed?

Added ⭐️

Upgrading ⚙️

ember install ember-cli-typescript@latest

Contributors 🙇

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

  • @chriskrycho
  • @dfreeman
  • @jamescdavis
  • @ro0gr
ember-cli-typescript - Make less noise, do fewer needless things

Published by chriskrycho about 5 years ago

What Changed?

Added ⭐️

  • In addons, ember-cli-typescript now installs itself into dependencies regardless of what ember install command you use. [#623]

Breaking 💥

  • No longer adds the Babel class properties plugin. This is a fix for #707, but it will break against ember-cli-babel versions before 7.7.
  • Removes support in the default blueprint for initializing new Module Unification projects, in line with MU's removal from Ember's roadmap in favor of other directions. Existing MU projects should continue to build and typecheck according to the local tsconfig.json. (#826)
  • Drops support for Node 6.

Upgrading

Thanks to #623, whether in an app or an addon you can simply run:

ember install ember-cli-typescript@latest

Contributors 🙇

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

  • @rwjblue
  • @dfreeman
  • @mike-north
  • @chriskrycho
  • @runspired
  • @jamescdavis
  • @bartocc
  • @lolmaus
  • @ro0gr
ember-cli-typescript -

Published by dfreeman over 5 years ago

ember-cli-typescript - How do you solve a problem like a name-mismatch? 🎵

Published by chriskrycho over 5 years ago

What Changed?

Fixed 🔧

  • Correctly handles a mismatch between package and addon names (#669)
  • Uses Notion to specify Node and Yarn versions correctly. (#667)

Upgrading ⚙️

For apps:

ember install ember-cli-typescript@latest

For addons:

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

Contributors 🙇

  • @chriskrycho
  • @ddoria921
  • @mike-north
ember-cli-typescript - One plus one is two

Published by dfreeman over 5 years ago

What Changed?

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.

Fixed 🔧

  • We now play nicely with other JS/TS processors, like ember-auto-import (#287)
  • Compilation across projects in monorepos no longer causes tsc to panic (#314)

Added ⭐️

  • Typechecking now occurs off of the main build thread, so the two are no longer in competition for CPU time on multi-core systems.
  • Much nicer formatting for type errors in both the console and browser when running ember serve.
  • TS code is now transpiled by Babel, allowing it to benefit from the same caching and parallelization as JS transpilation, and ensuring consistent language semantics between TS and JS files.

Upgrading ⚙️

See the 2.0 Upgrade Notes for detailed instructions on upgrading from 1.x to 2.0.

Contributors 🙇

Thanks to everyone who opened/discovered an issue we fixed or PR we merged over the course of our 2.0 stabilization process!

  • @acorncom
  • @allenylzhou
  • @alexlafroscia
  • @anmaikul
  • @Bouke
  • @boris-petrov
  • @championswimmer
  • @chriskrycho
  • @dwickern
  • @dfreeman
  • @ef4
  • @Gaurav0
  • @happycollision
  • @jamescdavis
  • @lifeart
  • @mfeckie
  • @mike-north
  • @runspired
  • @simonihmig
  • @theseyi
ember-cli-typescript - Consistency, we hope

Published by chriskrycho almost 6 years ago

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

Fixed 🔧

  • Set --isolatedModules back to false in both precompilation and generated blueprints

Added ⭐️

  • We now warn you nicely if you try to use this in an addon via devDependencies instead of dependencies

Under the hood 🚗

  • Used the same tests commands across providers, so we get the same results

Upgrading ⚙️

For apps:

ember install ember-cli-typescript@next

For addons:

ember install -S ember-cli-typescript@next

Contributors 🙇

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

  • @alexlafroscia
  • @dfreeman
  • @happycollision
ember-cli-typescript - Stay on target… stay on target…

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 🔧

  • Builds no longer hang if a changed TypeScript file did not trigger a TS rebuild (which can happen e.g. if it is not yet imported elsewhere).
  • Type-checking information now properly gets injected into the build pipeline for test builds as well as development and production builds.
  • Declaration maps now have test coverage to make sure they don't break.

Changed 💥

  • The build system now uses the tsconfig.json file's paths key to copy type definitions during precompile, rather than assuming Ember project structure.

Added ⭐️

  • The addon now checks to confirm you're using Ember CLI 3.5+, since the new approach to builds has serious performance problems with a local tmp directory.

Under the hood 🚗

  • Bumped many dependency versions.
  • Set up Azure Pipelines configuration.
  • Updated internals to use TypeScript themselves.

Upgrading ⚙️

ember install ember-cli-typescript@next

Contributors 🙇

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

  • @mike-north
  • @dfreeman
  • @jamescdavis
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