Kristiyan Kostadinov
99d874fe3b
feat(core): add support for TypeScript 5.0 ( #49126 )
...
Updates the project to support TypeScript 5.0 and to resolve any errors that came up as a result of the update.
PR Close #49126
2023-02-28 08:24:47 -08:00
Paul Gschwendtner
acf98268f8
refactor: update language-service package and tests to work with ESM ( #48521 )
...
The Angular Language Service package is now tested & compiled using ESM.
Previously it was a mismatch of CommonJS and ESM.
Still the language-service ESM output is transformed into a single UMD
bundle to allow for module resolution to be overriden. See
`bundles/BUILD`.
This is kept as is. To fully ship ESM (language-service is an exception
here), we need to:
* Update all code to no longer reference typescript via import. Instead
typescript needs to be passed around so that the extension can
control the version
* The VSCode extension/ the TS server needs to be able to load ESM. It
looks like the server supports ESM global plugins, but the extension
might not yet.
This is out of scope for the dev-infra effort as it requires more
insight into VSCode & the extension system & the TS language server.
PR Close #48521
2022-12-19 19:50:44 +00:00
Alan Agius
16f96eeabf
refactor(compiler-cli): remove enableIvy options ( #47346 )
...
This option has no longer any effect as Ivy is the only rendering engine.
BREAKING CHANGE: Angular compiler option `enableIvy` has been removed as Ivy is the only rendering engine.
PR Close #47346
2022-09-06 11:33:48 -07:00
Andrew Scott
fa754cd9db
fix(language-service): Prevent TSServer from removing templates from project ( #45965 )
...
As part of the `updateProjectIfDirty` process and inside `updateNonInferredProjectFiles`
TS Server will remove the template files that we added as roots in
`readResource`.
https://sourcegraph.com/github.com/microsoft/TypeScript@c300fea3250abd7f75920d95a58d9e742ac730ee/-/blob/src/server/editorServices.ts?L2363
The external files are added to the list here so ensuring that the
templates are included in the `getExternalFiles` will prevent this from
happening
https://sourcegraph.com/github.com/microsoft/TypeScript@c300fea3250abd7f75920d95a58d9e742ac730ee/-/blob/src/server/editorServices.ts?L2395:18
PR Close #45965
2022-05-12 09:25:18 -07:00
Doug Parker
e0a340ea5b
refactor(compiler-cli): remove leftover _extendedTemplateDiagnostics flag ( #44920 )
...
This flag is currently a no-op because extended diagnostics are enabled in production.
PR Close #44920
2022-02-01 18:24:10 +00:00
Kristiyan Kostadinov
a4ab6d6b72
feat(compiler): add support for safe calls in templates ( #44580 )
...
Adds support for safely calling functions that may be undefined inside template expressions. E.g. `maybeUndefined?.()`
Fixes #42298 .
PR Close #44580
2022-01-11 17:32:47 +00:00
Alex Rickabaugh
8c71b9fc42
refactor: delete the View Engine runtime ( #43884 )
...
This commit removes the View Engine runtime. Itself, this change is
relatively straightforward, but it represents the final step in a multi-year
journey. It's only possible due to the hard work of many current and former
team members and collaborators, who are too numerous to list here.
Co-authored-by: Alan Agius <alan.agius4@gmail.com >
Co-authored-by: Andrew Kushnir <akushnir@google.com >
Co-authored-by: Andrew Scott <atscott01@gmail.com >
Co-authored-by: Andrew Seguin <andrewjs@google.com >
Co-authored-by: Cédric Exbrayat <cedric@ninja-squad.com >
Co-authored-by: Charles Lyding <19598772+clydin@users.noreply.github.com >
Co-authored-by: Dave Shevitz <dshevitz@google.com >
Co-authored-by: Doug Parker <dgp1130@users.noreply.github.com >
Co-authored-by: Dylan Hunn <dylhunn@gmail.com >
Co-authored-by: Emma Twersky <emmatwersky@google.com >
Co-authored-by: George Kalpakas <kalpakas.g@gmail.com >
Co-authored-by: Igor Minar <iminar@google.com >
Co-authored-by: Jeremy Elbourn <jelbourn@google.com >
Co-authored-by: Jessica Janiuk <jessicajaniuk@google.com >
Co-authored-by: JiaLiPassion <JiaLi.Passion@gmail.com >
Co-authored-by: Joey Perrott <josephperrott@gmail.com >
Co-authored-by: Joost Koehoorn <joost.koehoorn@gmail.com >
Co-authored-by: Kristiyan Kostadinov <crisbeto@abv.bg >
Co-authored-by: Madleina Scheidegger <mscheid@google.com >
Co-authored-by: Mark Thompson <2554588+MarkTechson@users.noreply.github.com >
Co-authored-by: Minko Gechev <mgechev@gmail.com >
Co-authored-by: Paul Gschwendtner <paulgschwendtner@gmail.com >
Co-authored-by: Pawel Kozlowski <pkozlowski.opensource@gmail.com >
Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com >
Co-authored-by: Wagner Maciel <wagnermaciel@google.com >
Co-authored-by: Zach Arend <zachzach@google.com >
PR Close #43884
2021-11-23 21:10:06 +00:00
Andrew Scott
670cd10e30
refactor(language-service): Move language service code out of ivy/ folder ( #44064 )
...
This commit moves code in the language service package out of the ivy
subfolder. Ivy is the _only_ engine supported in v13+ so there's no need
to have a name for it.
PR Close #44064
2021-11-10 01:20:04 +00:00