Commit 4c06184
chore: release LWC v9 (#5635)
* chore: bump meriyah to v7 (#5626)
* build(deps): bump meriyah from 5.0.0 to 7.0.0
Bumps [meriyah](https://github.com/meriyah/meriyah) from 5.0.0 to 7.0.0.
- [Release notes](https://github.com/meriyah/meriyah/releases)
- [Changelog](https://github.com/meriyah/meriyah/blob/main/CHANGELOG.md)
- [Commits](meriyah/meriyah@v5.0.0...v7.0.0)
---
updated-dependencies:
- dependency-name: meriyah
dependency-version: 7.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: fix version bump errors
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat(dist): publish packages as ESM rather than CJS @W-20496487 (#5639)
* feat: change packages to type: module
* chore: don't lint .cjs files
we don't use them
* chore: convert `module.exports` to `export default`
* chore: replace `__dirname` with `import.meta.dirname`
* chore: use .cjs extension
* chore: rename test command to match package
* revert(wdio): change back to commonjs
* chore: convert script to esm
* chore: change `main` entrypoint from CJS to ESM
* fix(esm): misc changes to support ESM-first
* fix: still use CJS for bundling
* feat: add package.json `exports`
* chore(deps): bump typescript to v6 (#5637)
* chore: enforce node v20 via `engines.node` @W-20496487 (#5636)
* chore(scripts): add engines.node to package.json validation
* chore(package.json): add engines.node to packages
* chore(engines): downgrade node to lowest version that works
* chore(engines): downgrade node to lowest version that works
* chore(engines): remove useless engines from root package.json
* chore(deps): bump deps
* chore: revert package.json `exports`
breaks vitest and I don't want to spend any more time on this
* test: update snapshots
* oops
* test: update snapshots
* test(perf): update perf-benchmarks to esm
* docs: switch to ESM
* chore: fix import
* chore(deps): revert bumps
* oops
* test: update TS version
* chore: prefer `node:` protocol (#5649)
* chore: replace duped issue number with open issue
* chore: remove completed TODOs
* feat(ts): use const to infer wire generics
* test(types): fix tests broken by const inference
* feat(compiler): rename experimentalDynamicComponent to dynamicImports (#5651)
* feat: deprecate engine-server (#5654)
* feat: remove engine-server from `lwc` barrel
* chore: mark engine-server as private
* test(ssr): move fixtures from engine-server to ssr-compiler
* chore: fix deps again hopefully
* test(wtr): remove broken tests
feature was never implemented
* chore(deps): pin so ts version stops breaking test
* chore: bump version to v8.27.0
* chore: minor TS adjustments @W-20496487 (#5647)
* chore(types): fiddle with types
I enabled `isolatedDeclarations` and fixed everything that made sense.
Fully enabling the flag requires creating explicit types for the error info objects in `@lwc/errors`,
which would be tedious, so I skipped that and disabled the flag.
I enabled `isolatedModules` and fixed everything that made sense.
We can't use `const enum` with isolated modules, but we like them because they minify cleanly,
so I skipped that and disabled the flag.
I enabled `erasableSyntaxOnly` and fixed everything that made sense.
We can't use `const enum` with isolated modules, but we like them because they minify cleanly,
so I skipped that and disabled the flag.
(I did replace our regular `enum` with objects.)
* test: fix TS version assertion
* chore: fix import
* feat(babel-plugin-component): remove import dedupe (#5650)
* feat: remove import dedupe
it gets done at the rollup level
* test(babel-plugin-component): update fixtures for no dedupe
* feat(playground): allow arbitrary port
* test(rollup): validate preserved import dedupe
* Apply suggestion from @wjhsf
* test(compiler): add import non-dedupe test
* chore: oops a comma
* Revert "feat: deprecate engine-server (#5654)"
This reverts commit 9260671.
* chore: revert change so file stays tree-shakeable
* chore: remove CJS hack
bundlers should be able to handle it by now
and if not, we're ESM-first!
* test(lwc): remove remnant of jest
* chore(deps): dependency treadmill
* Reapply "feat: deprecate engine-server (#5654)"
This reverts commit 4d9ba66.
* feat(wire): update type definition to make invalid config more obvious (#5660)
* feat(wire): make type def more helpful but less complete
Previously, `@wire(adapter,{config:value})` with an invalid `value`
resulted in a confusing error reported on `adapter`, because the function
inferred the config type and derived the adapter type.
Now the function infers the adapter type and derives the config type.
As a result, an invalid `value` correctly reports an error on `value`.
It does so by augmenting the config with the $reactive prop strings that
are available. However, due to recursive types, this list is potentially
infinite. To provide utility but mitigate this, only top-level props are
validated. Any chained property access (`$nested.prop`) validates that
the top-level prop is an object, but allows any nested props, even if
they are actually invalid.
* feat(decorators): always throw helpful error
* feat(wire): handle quirky edge case
* test(wire): split wire types test into multiple files
* test(types): update tests for @wire on methods
* test(types): update tests for @wire on getters
* test(types): update tests for @wire on setters
* feat(wire): omit LightningElement methods from config type
* fix(types): exclude `constructor` from wire reactive config expansions
* fix(types): exclude functions from nested property chain unless they have props
* test(decorators): message is thrown in prod, too
* chore(wire): update jsdoc with caveats
* chore(wire): update jsdoc with caveats and examples
* docs(wire): doc feedback
* chore: v8.28.0
* chore(deps): dependency treadmill
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: James Tu <jmsjtu@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 578de56 commit 4c06184
File tree
261 files changed
+1342
-1389
lines changed- packages
- @lwc
- aria-reflection
- src
- babel-plugin-component
- src
- __tests__
- fixtures
- api-decorator
- @api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another
- does-not-throw-error-if-property-name-is-data
- does-not-throw-if-property-name-prefixed-with-aria
- single-@api-getter-on-one-class-member-should-not-conflict-with-@api-setter-on-another
- transform-complex-attributes
- transform-nested-classes
- transform-pairs-of-setter-and-getter
- transforms-public-getters
- transforms-public-methods
- transforms-public-props
- w-9927596-public-getter-setter-with-duplicate-property
- w-9927596-public-property-with-duplicate-getter-setter
- decorators
- should-register-decorators-for-anonymous-class-declarations
- should-transform-decorators-on-classdeclaration-in-a-large-input-file
- unnecessary-register-decorators
- latest/should-register-decorators-for-named-class-that-extends-non-lightning-element
- v59
- should-register-decorators-for-named-class-that-extends-non-lightning-element
- should-register-decorators-if-named-class-has-no-superclass
- dedupe-imports
- should-handle-an-alias-of-an-export
- should-handle-multiple-aliases-of-the-same-export
- should-handle-multiple-defaults-of-the-same-export
- should-handle-the-simple-case
- should-support-importing-names-and-default-2
- should-support-importing-names-and-default
- should-support-importing-the-entire-contents-for-a-module
- error-recovery-mode
- api
- duplicate-api-property
- invalid-boolean-public-property
- invalid-property-name-on
- invalid-propery-name-data
- reserved-property-name-class
- track/track-only-allowed-on-class-properties
- wire
- adapter-should-be-first-parameter
- config-object-should-be-second-parameter
- conflict-with-another-decorator
- invalid-adapter
- one-wire-decorator-allowed
- implicit-explicit
- api-decorator
- mixin
- test-cmp-named-class-with-decorators
- wire
- observed-fields
- should-be-added-to-the-registercomponentcall-when-a-field-is-not-decorated-with-@api-@track-or-@wire
- should-not-observe-changes-in-a-static-fields
- should-not-observe-changes-in-computed-fields
- should-not-process-reserved-words-as-field-when-decorated-with-@api-@track-or-@wire
- track-decorator
- transform-track-decorator-field
- transform-track-decorator-preserve-initial-value
- wire-decorator
- adapter-function-identifier-works
- adapter-member-expression-works
- basic-field
- basic-method
- config-ignores-method
- config-ignores-spread
- config-imported-values-works
- config-multiple-dynamic-params-works
- config-not-provided-works
- config-numeric-keys-works
- config-string-literal-keys-works
- decorating-multiple-props-works
- decorator-on-getter-alone-works
- decorator-on-getter-works
- decorator-on-setter-alone-works
- decorator-on-setter-works
- reactive-string-2-levels-works
- reactive-string-deep-chain-works
- reactive-string-with-empty-segment-works
- reactive-string-with-non-identifier-works
- transforms-computed-properties-const-from-obj
- transforms-computed-properties
- compiler
- src
- transformers
- __tests__
- engine-core
- src/framework
- decorators
- wiring
- engine-dom
- engine-server
- src
- __tests__
- errors
- src
- __tests__
- compiler
- error-info
- features
- integration-types/src
- decorators
- wire
- playground
- integration-wdio
- scripts
- src/components
- accessibility
- delegates-focus-click-input-in-negative-tabindex
- delegates-focus-click-target-natively-non-focusable
- delegates-focus-false
- delegates-focus-focus-method-on-host-element
- delegates-focus-focus-method-on-internal-element
- delegates-focus-from-next-sibling
- delegates-focus-from-prev-sibling
- delegates-focus-input-negative-tabindex-prev-sibling
- delegates-focus-nested-focusable-custom
- delegates-focus-next-sibling-visibility-false
- delegates-focus-non-focusable-click-target
- delegates-focus-slot
- delegates-focus-tabindex-zero-no-focusable-no-after
- delegates-focus
- delegates-focus-click
- invoke-focus-on-click
- nested-tabindex-negative
- delegates-focus-programmatic
- backwards-compatible
- basic
- nested
- noop-when-already-focused
- not-focusable
- slotted
- dom/inner-text
- events
- change-event-composed
- clipboard-event-composed
- focusin-composed-true
- focusout-composed-true
- slotted-event-target
- memory-leaks/lifecycle-leak
- integration-wtr
- configs/plugins
- helpers
- test
- api/decorators
- custom-elements-registry
- native-shadow/Event-properties
- polyfills/html-collection
- shadow-dom
- EventTarget-methods
- ShadowRoot-properties
- event-in-shadow-tree
- multiple-templates
- module-resolver
- src
- __tests__
- perf-benchmarks-components
- perf-benchmarks
- scripts
- rollup-plugin
- src
- __tests__
- apiVersion
- compilerConfig
- enableStaticContentOptimization
- importDedupe
- fixtures/basic
- integrations
- resolver
- rootDir
- warnings
- signals
- ssr-client-utils
- src
- ssr-compiler
- src
- __tests__
- fixtures/wire/errors/throws-on-computed-method
- compile-js
- compile-template
- ssr-runtime
- src
- __tests__
- style-compiler
- src
- __tests__
- dir-pseudo-class
- selector-scoping
- utils
- synthetic-shadow
- src/polyfills/event
- template-compiler
- src
- __tests__
- codegen/formatters
- parser
- types
- wire-service
- lwc
- __tests__
- playground
- scripts
- bundlesize
- eslint-plugin/rules
- release
- rollup
- tasks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
261 files changed
+1342
-1389
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | | - | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments