Releases: typed-ember/glint
v1.0.0-beta.5
v1.0.0-beta.4
🚀 Enhancement
core
- #544 Expose TS language service and original document contents in
ProjectAnalysis
(@cafreeman)
- #544 Expose TS language service and original document contents in
environment-ember-template-imports
📝 Documentation
- #537 Small note about ember-template-imports (@TechieQian)
Committers: 3
- Chris Freeman (@cafreeman)
- Hank Majoros (@hmajoros)
- Qian Wan (@TechieQian)
v1.0.0-beta.3
Our third beta release largely focuses on bugfixes and the introduction of initial support for Code Actions in the language server as well as filling out native support for logical operators.
The only other notable behavioral change since beta 2 is that we now enforce that the copy of the typescript
package we find meets our minimum version requirement, issuing an error message if not.
🚀 Enhancement
core
- #520 Honor user formatting preferences in completions (@chadhietala)
- #523 Validate that TS meets our minimum supported version requirement (@dfreeman)
- #510 Add support for logical operators (RFC 562) (@bwbuchanan)
environment-ember-loose
- #498 Widen supported range for ember-modifier to include v4 (@SergeAstapov)
core
,vscode
- #499 Introduce CodeActions (@chadhietala)
🐛 Bug Fix
core
,vscode
core
📝 Documentation
vscode
- Other
- #511 Add documentation note about error substate routes (@bwbuchanan)
type-test
- #497 Fix typo in README (@boris-petrov)
🏠 Internal
Committers: 6
- Boris Petrov (@boris-petrov)
- Brian Buchanan (@bwbuchanan)
- Chad Hietala (@chadhietala)
- Dan Freeman (@dfreeman)
- Hank Majoros (@hmajoros)
- Sergey Astapov (@SergeAstapov)
v1.0.0-beta.2
Our second beta release fixes a variety of user-reported bugs from beta.1, as well as a few other issues that have been around since before the beta cycle. We've also added support for telling the VS Code extension where to look for @glint/core
in the 1.0 pre-release version.
Note that as of beta.2, we now require TypeScript 4.8+ as a peer dependency, dropping support for 4.7.
More details about these and other changes are available in the migration guide and, for those interested, the PRs linked below.
💥 Breaking Change
🚀 Enhancement
core
,environment-ember-loose
,environment-glimmerx
,scripts
,template
,type-test
vscode
🐛 Bug Fix
core
core
,vscode
template
environment-ember-loose
📝 Documentation
- #478 docs: move registry interface inside registry ambient module (@jamescdavis)
🏠 Internal
type-test
core
- #494 Remove unused
--build
suite tests (@chriskrycho)
- #494 Remove unused
Committers: 3
- Chris Krycho (@chriskrycho)
- Dan Freeman (@dfreeman)
- James C. Davis (@jamescdavis)
Additional thanks to @hmajoros for some particularly gnarly debugging work that went into #495.
v1.0.0-beta.1
This marks the first release in our 1.0 beta period for Glint! We encourage you to try out the beta and report any issues you run into. While we don't anticipate landing any further breaking changes during the beta cycle, be aware that it's still possible we'll do so in response to bugs or other early feedback. We do have a few non-breaking bugfixes and improvements we expect to land before the stable 1.0.0 release.
Most of the changes in Glint 1.0 should appear as bugfixes and improvements to the majority of users migrating from 0.9.x. During the beta, you can install the Glint 1.0 prerelease packages using the beta
dist-tag, i.e.:
yarn add --dev @glint/core@beta @glint/template@beta @glint/environment-ember-loose@beta
The main change to be aware of is that @glint/template
should now be explicitly added to your project's devDependencies
when you upgrade Glint. Note also that support for include
and exclude
globs has been removed.
More details about these and other changes are available in the migration guide and, for those interested, the PRs linked below.
💥 Breaking Change
Note: while most of these PRs were labeled breaking
, in practice they should have very little impact on typical consumers of Glint who aren't using private APIs.
core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
,template
core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
core
,environment-ember-template-imports
core
,scripts
core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
,template
,vscode
config
,core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
,scripts
,transform
,vscode
core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
,template
,transform
🚀 Enhancement
core
,vscode
core
,environment-ember-loose
,environment-ember-template-imports
- #456 Add support for equality operators (Ember RFC 560) (@bwbuchanan)
config
,core
,environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
,template
,transform
🐛 Bug Fix
environment-ember-loose
- #461 Fix Get Helper (@chadhietala)
core
- #469 honor
compilerOptions.incremental
in build mode (@hmajoros) - #472 Honor lowercase in-scope variables when used as components (@dfreeman)
- #457 Rename block param identifiers that conflict with JS/TS keywords. (@bwbuchanan)
- #442 Further autocomplete improvements (@dfreeman)
- #441 Ensure we don't conflict with
declarationMap: true
(@dfreeman) - #440 Handle out-of-scope files more cleanly in the language server (@dfreeman)
- #469 honor
📝 Documentation
- #474 Add migration notes for 0.9 => 1.0 (@dfreeman)
- #451 Update addon docs with the outcome of #439 (@dfreeman)
- #448 Fix a typo in directives docs (@lukemelia)
- #437 Note that generic template-only-component signatures are not supported (@boris-petrov)
🏠 Internal
- Other
environment-ember-loose
,environment-ember-template-imports
,environment-glimmerx
- #458 Add an export statement to */-private/index.ts (@bwbuchanan)
Committers: 7
- Boris Petrov (@boris-petrov)
- Brian Buchanan (@bwbuchanan)
- Chad Hietala (@chadhietala)
- Dan Freeman (@dfreeman)
- Hank Majoros (@hmajoros)
- James C. Davis (@jamescdavis)
- Luke Melia (@lukemelia)
v0.9.7
v0.9.6
Overview
This Glint release fixes a handful of bugs, as well as improving the friendliness of some common error messages.
It's also the first release that includes a new @glint/scripts
package for codemods and other automation to ease migration and adoption of Glint in new packages.
Notes
TS 4.8 and render()
Prior to Glint v0.9.6, calls to render()
with no explicit context type parameter in Ember rendering tests would implicitly type this
as never
in TypeScript <= 4.7, and cause an unavoidable type error in TypeScript >= 4.8. The this
type in such templates will now correctly be inferred as an empty value in TS 4.8+, meaning that any tests that previously typechecked code like {{this.foo}}
because this
was never
will now correctly have type errors.
To fix these errors, you can either provide a correct context type e.g. render<{ foo: string }>(...)
, or you can opt to retain the previous "anything goes" behavior by writing render<any>(...)
and explicitly acknowledging that you're typing this
as any
in the template.
Incremental Adoption
If you're currently using include
and/or exclude
to limit the files in your project that Glint typechecks, consider removing those entries and using the new auto-glint-nocheck
script instead!
The script automatically adds a {{! @glint-nocheck }}
comment at the top of any templates that don't yet typecheck, allowing you to get editor support (hover info, go-to-definition, refactorings, etc) even in templates that aren't yet typesafe.
npx -p @glint/scripts auto-glint-nocheck '{app,tests}/**/*.{ts,hbs,gts}'
Note that even if you run auto-glint-nocheck
via npx
(which is recommended), you'll still need to update your project to Glint 0.9.6 first, as the script uses your project-local copy of @glint/core
and relies on some interfaces that were added in this release.
Detailed Changes
🚀 Enhancement
core
,transform
environment-ember-loose
config
,core
,environment-ember-template-imports
,scripts
,transform
,vscode
🐛 Bug Fix
transform
environment-ember-loose
core
Committers: 2
v0.9.5
🚀 Enhancement
core
- #426 Add support for
--build --watch
(@chriskrycho)
- #426 Add support for
🐛 Bug Fix
core
- #402 core/cli: fix empty
.buildinfo
files with--incremental
(@chriskrycho)
- #402 core/cli: fix empty
📝 Documentation
- #424 Add Common Error notes for
resolve
failures and missingGlobals
members (@dfreeman) - #423 docs: remove caveat about JS from README (@chriskrycho)
- #420 Introduce an ARCHITECTURE.md file (@chriskrycho)
- #419 Add docs for JS usage, including an example (@chriskrycho)
- #416 Remove unhelpful
glint-language-server
docs page (@dfreeman)
🏠 Internal
config
,core
,environment-ember-template-imports
,transform
- Other
- #422 chore: ignore Markdown files in Prettier (@chriskrycho)
- #421 Fix CI: Prettier on .md files (@chriskrycho)
- #418 Use Node 16 for development (@chriskrycho)
- #417 Refresh
@types/node
for TS nightly fixes (@dfreeman)
core
- #415 add severity to diagnostic error message (@patricklx)
Committers: 3
- Chris Krycho (@chriskrycho)
- Dan Freeman (@dfreeman)
- Patrick Pircher (@patricklx)
v0.9.4
🐛 Bug Fix
environment-glimmerx
- #403 bugfix: Actually include globals.d.ts (@chadhietala)
📝 Documentation
- #401 Document
@glint
directives, incorporating suggestions (@lukemelia)
Committers: 2
- Chad Hietala (@chadhietala)
- Luke Melia (@lukemelia)
v0.9.3
🚀 Enhancement
environment-glimmerx
- #397 feat: expose component helper for glimmerx (@chadhietala)
- #399 feat: Expose Globals registry to glimmerx (@chadhietala)
📝 Documentation
Committers: 2
- Chad Hietala (@chadhietala)
- Dan Freeman (@dfreeman)