@lwc/shared
9.5.3 · 27 Oct 2026MIT510.2k / weekRepositoryHomepagenpmAtom feed
Upgrading @lwc/shared from 7.2.6 to 8.0.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 0
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- breaking8.0.0
- breaking8.0.0
3 other lines we could not sort, mostly version bumps
- 8.0.0
Due to the way decorators are implemented in TypeScript, the type of the prop cannot be inferred from the wire adapter; you must provide an explicit type.
- 8.0.0
To get the most accurate validation of your types, use
constassertions on your config object. Without aconstassertion, the type system cannot distinguish between a reactive prop (e.g."$authorName") and a regular string (e.g."Codey the Bear"). As a consequence, all values of typestringare not type checked. - 8.0.0
Due to the above constraints, the reported type errors can appear complex and hard to understand. They typically boil down to validating that your config object and prop type both match the type expected by the wire adapter.