Package updates for @labkey/build, @labkey/test, @labkey/components, @labkey/eslint-config-base and @labkey/eslint-config-react. The most notable change is switching the default target to ES2021 from ES6. This changes the generated output code of our applications to default to browser native implementations for ES-features up through ES2021. Here is a nice summary of the features and their adoption rate in browsers. The most recent version of all major browser have supported all of these features for awhile now.
Additionally, these package updates are aligned with NodeJS v20 which we're updating as a part of these changes.
Update tsconfig.json to "target": "ES2021" and "lib": ["ES2021", "DOM", "DOM.Iterable"]
@labkey/components
Package updates
Refactor out the testMode prop from DomainForm
Fix-up a number of unit tests to no longer issue runtime errors
@labkey/eslint-config-base
Package updates
Did not perform major upgrade of ESLint to v9.x as this will require a significant change to how our linting configuration is declared. See the migration guide.
Rationale
Package updates for
@labkey/build
,@labkey/test
,@labkey/components
,@labkey/eslint-config-base
and@labkey/eslint-config-react
. The most notable change is switching the default target to ES2021 from ES6. This changes the generated output code of our applications to default to browser native implementations for ES-features up through ES2021. Here is a nice summary of the features and their adoption rate in browsers. The most recent version of all major browser have supported all of these features for awhile now.Additionally, these package updates are aligned with NodeJS v20 which we're updating as a part of these changes.
Related Pull Requests
Changes
@labkey/build
tsconfig.json
to"target": "ES2021"
and"lib": ["ES2021", "DOM", "DOM.Iterable"]
@labkey/components
testMode
prop fromDomainForm
@labkey/eslint-config-base
@labkey/eslint-config-react
@labkey/test