Skip to content

Commit 46bcea9

Browse files
authored
ES2023 and declarativeMap (#1950)
1 parent 22a44f4 commit 46bcea9

10 files changed

Lines changed: 51 additions & 36 deletions

File tree

packages/build/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/build",
3-
"version": "8.9.0",
3+
"version": "9.0.0",
44
"description": "LabKey client-side build assets",
55
"files": [
66
"webpack/"

packages/build/releaseNotes/build.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @labkey/build
22

3+
### version 9.0.0
4+
*Released*: 9 March 2026
5+
- Update TypeScript compiler `lib` and `target` options to `"ES2023"'
6+
37
### version 8.9.0
48
*Released*: 26 February 2026
59
- Package updates

packages/build/webpack/package.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ module.exports = {
7676
'@hello-pangea/dnd',
7777
'@labkey/api',
7878
'@labkey/components',
79-
'@labkey/premium/assay',
80-
'@labkey/premium/eln',
81-
'@labkey/premium/entities',
82-
'@labkey/premium/workflow',
83-
'@labkey/premium/storage',
84-
'@labkey/premium/search',
79+
'@labkey/premium',
8580
'@remirror/pm',
8681
'@remix-run/router',
8782
'@testing-library/jest-dom',

packages/build/webpack/tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"moduleResolution": "node",
77
"noEmit": true,
88
"resolveJsonModule": true,
9-
// sourceMap needs to be true in order for our tests have accurate stack traces, it does not noticeably impact
9+
// sourceMap needs to be true in order for our tests to have accurate stack traces, it does not noticeably impact
1010
// compile times
1111
"sourceMap": true,
12-
"target": "ES2021",
13-
"lib": ["ES2021", "DOM", "DOM.Iterable"],
14-
// Paradoxically we HAVE to include the jest types. If we do not explicitly include them our builds will pass if we
15-
// try to use Node libraries (e.g. Array.at). If we include the jest types our builds will correctly compile against
16-
// the lib targets above.
12+
"target": "ES2023",
13+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
14+
// Paradoxically, we HAVE to include the jest types. If we do not explicitly include them, our builds pass if
15+
// we try to use Node libraries (e.g., Array.at). If we include the jest types, our builds will correctly compile
16+
// against the lib targets above.
1717
"types": ["jest"]
1818
}
1919
}

packages/components/package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "@labkey/components",
3-
"version": "7.22.1",
3+
"version": "7.23.0",
44
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
55
"sideEffects": false,
66
"files": [
7-
"dist/"
7+
"dist/**/*.js",
8+
"dist/**/*.js.map",
9+
"dist/**/*.d.ts",
10+
"dist/**/*.scss"
811
],
912
"main": "dist/components.js",
1013
"module": "dist/components.js",
@@ -50,7 +53,7 @@
5053
"homepage": "https://github.com/LabKey/labkey-ui-components#readme",
5154
"dependencies": {
5255
"@hello-pangea/dnd": "18.0.1",
53-
"@labkey/api": "1.48.0",
56+
"@labkey/api": "1.49.0",
5457
"@testing-library/dom": "~10.4.1",
5558
"@testing-library/jest-dom": "~6.9.1",
5659
"@testing-library/react": "~16.3.2",
@@ -75,7 +78,7 @@
7578
"vis-network": "~10.0.2"
7679
},
7780
"devDependencies": {
78-
"@labkey/build": "8.9.0",
81+
"@labkey/build": "9.0.0",
7982
"@labkey/eslint-config": "1.1.3",
8083
"@types/history": "4.7.11",
8184
"@types/jest": "30.0.0",

packages/components/releaseNotes/components.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# @labkey/components
22
Components, models, actions, and utility functions for LabKey applications and pages
33

4+
### version 7.23.0
5+
*Released*: 10 March 2026
6+
- Update `tsconfig.json` to specify `delcarationMap`
7+
- Add missing `declare` statements that are now required with `ES2023`
8+
49
### version 7.22.1
510
*Released*: 6 March 2026
611
- GitHub Issue 897: Study dataset should not allow multivalue text choice as a third key

packages/components/src/internal/components/lineage/models.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ export class LineageNode
335335
declare url: string;
336336

337337
// computed properties
338-
distance: number;
339-
iconProps: LineageIconMetadata;
340-
links: LineageLinkMetadata;
341-
listURL: string;
342-
meta: LineageNodeMetadata;
338+
declare distance: number;
339+
declare iconProps: LineageIconMetadata;
340+
declare links: LineageLinkMetadata;
341+
declare listURL: string;
342+
declare meta: LineageNodeMetadata;
343343

344344
static create(lsid: string, values?: Partial<LineageNodeConfig>): LineageNode {
345345
let config;
@@ -350,15 +350,15 @@ export class LineageNode
350350
config = {
351351
...values,
352352
...LineageIO.applyConfig(values),
353-
...{
353+
...({
354354
children: LineageLink.createList(values.children),
355355
lsid,
356356
name: values.restricted
357357
? `Restricted ${values.type === 'Data' ? 'Source' : values.type}`
358358
: values.name,
359359
parents: LineageLink.createList(values.parents),
360360
steps: List(values.steps?.map(stepProps => new LineageRunStep(stepProps))),
361-
},
361+
} as Partial<LineageNodeConfig>),
362362
};
363363
}
364364

packages/components/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"extends": "./node_modules/@labkey/build/webpack/tsconfig.json",
33
"compilerOptions": {
4+
// declarationMap is required for IntelliJ to resolve source file references
5+
"declarationMap": true,
6+
"rootDir": "src",
7+
"outDir": "dist",
8+
"paths": {
9+
// Point to the dist/lib folder where the .d.ts files are output
10+
"@labkey/api": ["../../../labkey-api-js/dist/index"],
11+
},
412
"typeRoots": ["node_modules/@types", "src/typings"]
513
},
614
"include": ["src/**/*"],

0 commit comments

Comments
 (0)