Skip to content

Commit f0804f8

Browse files
committed
Typescript 5.8 changeset
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
1 parent dac0f70 commit f0804f8

File tree

557 files changed

+7529
-8507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

557 files changed

+7529
-8507
lines changed

common/config/rush/pnpm-lock.yaml

+4,136-4,878
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"format": "echo \"No format specified\""
66
},
77
"devDependencies": {
8-
"esbuild": "^0.24.2",
8+
"esbuild": "^0.25.1",
99
"sharp": "~0.32.0"
1010
},
1111
"private": true

desktop-package/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"@vercel/webpack-asset-relocator-loader": "^1.7.3",
2121
"node-loader": "~2.0.0",
2222
"cross-env": "~7.0.3",
23-
"typescript": "^5.3.3",
23+
"typescript": "^5.8.2",
2424
"electron": "^35.0.3",
25-
"@types/node": "~20.11.16",
25+
"@types/node": "^22.13.5",
2626
"electron-builder": "^25.1.8",
2727
"@electron/notarize": "^2.3.2"
2828
},

desktop/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"node-loader": "~2.0.0",
2424
"cross-env": "~7.0.3",
2525
"webpack-cli": "^5.1.4",
26-
"webpack": "^5.97.1",
26+
"webpack": "^5.98.0",
2727
"mini-css-extract-plugin": "^2.2.0",
2828
"dotenv-webpack": "^8.0.1",
2929
"ts-loader": "^9.2.5",
@@ -44,11 +44,11 @@
4444
"fork-ts-checker-webpack-plugin": "^9.0.2",
4545
"update-browserslist-db": "^1.1.2",
4646
"browserslist": "^4.24.4",
47-
"typescript": "^5.3.3",
47+
"typescript": "^5.8.2",
4848
"ts-node": "^10.8.0",
4949
"ts-node-dev": "^2.0.0",
5050
"electron": "^35.0.3",
51-
"@types/node": "~20.11.16",
51+
"@types/node": "^22.13.5",
5252
"copy-webpack-plugin": "^11.0.0",
5353
"@typescript-eslint/eslint-plugin": "^6.11.0",
5454
"@typescript-eslint/parser": "^6.11.0",
@@ -58,7 +58,7 @@
5858
"eslint-plugin-promise": "^6.1.1",
5959
"eslint": "^8.54.0",
6060
"prettier": "^3.1.0",
61-
"esbuild": "^0.24.2",
61+
"esbuild": "^0.25.1",
6262
"esbuild-loader": "^4.0.3",
6363
"svelte-preprocess": "^5.1.3",
6464
"@types/ws": "^8.5.11"

desktop/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"outDir": "dist",
44
"noImplicitAny": true,
55
"module": "esnext",
6-
"target": "es2021",
6+
"target": "es2024",
77
"allowJs": true,
88
"declaration": true,
99
"strictNullChecks": true,

dev/doc-import-tool/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['./node_modules/@hcengineering/platform-rig/profiles/default/eslint.config.json'],
2+
extends: ['./node_modules/@hcengineering/platform-rig/profiles/node/eslint.config.json'],
33
parserOptions: {
44
tsconfigRootDir: __dirname,
55
project: './tsconfig.json'

dev/doc-import-tool/config/rig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
3-
"rigPackageName": "@hcengineering/platform-rig"
3+
"rigPackageName": "@hcengineering/platform-rig",
4+
"rigProfile": "node"
45
}

dev/doc-import-tool/package.json

+6-10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
"main": "lib/index.js",
55
"svelte": "src/index.ts",
66
"types": "types/index.d.ts",
7-
"files": [
8-
"lib/**/*",
9-
"types/**/*",
10-
"tsconfig.json"
11-
],
127
"author": "Anticrm Platform Contributors",
8+
"template": "@hcengineering/node-package",
139
"scripts": {
1410
"build": "compile",
1511
"build:watch": "compile",
@@ -18,9 +14,9 @@
1814
"run-local": "cross-env SERVER_SECRET=secret MONGO_URL=mongodb://localhost:27017 COLLABORATOR_URL=ws://localhost:3078 STORAGE_CONFIG=minio|minio?accessKey=minioadmin&secretKey=minioadmin node --nolazy -r ts-node/register ./src/__start.ts",
1915
"run": "cross-env node -r ts-node/register --max-old-space-size=8000 ./src/__start.ts",
2016
"format": "format src",
21-
"test": "jest --passWithNoTests --silent",
17+
"test": "jest --passWithNoTests --silent --forceExit",
2218
"_phase:build": "compile transpile src",
23-
"_phase:test": "jest --passWithNoTests --silent",
19+
"_phase:test": "jest --passWithNoTests --silent --forceExit",
2420
"_phase:format": "format src",
2521
"_phase:validate": "compile validate"
2622
},
@@ -33,13 +29,13 @@
3329
"eslint-plugin-n": "^15.4.0",
3430
"eslint": "^8.54.0",
3531
"ts-node": "^10.8.0",
36-
"esbuild": "^0.24.2",
32+
"esbuild": "^0.25.1",
3733
"@types/minio": "~7.0.11",
38-
"@types/node": "~20.11.16",
34+
"@types/node": "^22.13.5",
3935
"@typescript-eslint/parser": "^6.11.0",
4036
"eslint-config-standard-with-typescript": "^40.0.0",
4137
"prettier": "^3.1.0",
42-
"typescript": "^5.3.3",
38+
"typescript": "^5.8.2",
4339
"jest": "^29.7.0",
4440
"ts-jest": "^29.1.1",
4541
"@types/jest": "^29.5.5",

dev/doc-import-tool/src/commands.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { MeasureContext } from '@hcengineering/core'
1+
import { type MeasureContext } from '@hcengineering/core'
22
import docx4js from 'docx4js'
3-
import { AnyNode } from 'domhandler'
3+
import { type AnyNode } from 'domhandler'
44

55
import extract from './extract/extract'
66
import { MetadataContainer, read } from './extract/types'
77
import importExtractedFile from './import'
88
import convert from './convert/convert'
9-
import { Config } from './config'
9+
import { type Config } from './config'
1010

1111
export async function importDoc (ctx: MeasureContext, config: Config): Promise<void> {
1212
const { specFile, doc, backend } = config

dev/doc-import-tool/src/config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Employee } from '@hcengineering/contact'
2-
import { Ref, WorkspaceDataId, WorkspaceUuid } from '@hcengineering/core'
3-
import { DocumentSpace } from '@hcengineering/controlled-documents'
4-
import { StorageAdapter } from '@hcengineering/server-core'
1+
import { type Employee } from '@hcengineering/contact'
2+
import { type Ref, type WorkspaceDataId, type WorkspaceUuid } from '@hcengineering/core'
3+
import { type DocumentSpace } from '@hcengineering/controlled-documents'
4+
import { type StorageAdapter } from '@hcengineering/server-core'
55

6-
import { HtmlConversionBackend } from './convert/convert'
6+
import { type HtmlConversionBackend } from './convert/convert'
77

88
export interface Config {
99
doc: string

dev/doc-import-tool/src/extract/container.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseDocument } from 'htmlparser2'
33

44
import { NodeType } from './types'
55
import { clean } from '../helpers'
6-
import { Cell } from './common'
6+
import { type Cell } from './common'
77

88
export abstract class Container {
99
constructor (

dev/doc-import-tool/src/extract/extract.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { parseDocument } from 'htmlparser2'
2-
import { AnyNode, Document } from 'domhandler'
2+
import { type AnyNode, type Document } from 'domhandler'
33
import { findAll } from 'domutils'
44

5-
import { FileSpec, FileSpecType, TocFileSpec } from './types'
5+
import { type FileSpec, FileSpecType, type TocFileSpec } from './types'
66
import { createMetadataExtractor } from './meta'
7-
import { ExtractedSection, TocSectionExtractor, extractSections } from './sections'
7+
import { type ExtractedSection, TocSectionExtractor, extractSections } from './sections'
88

99
/**
1010
* @public

dev/doc-import-tool/src/extract/meta.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { AnyNode, Document, Element, Text } from 'domhandler'
1+
import { type AnyNode, type Document, type Element, type Text } from 'domhandler'
22
import { find } from 'domutils'
33
import { ElementType } from 'htmlparser2'
44

55
import {
6-
DocMetadataSpec,
6+
type DocMetadataSpec,
77
MetadataContainer,
8-
DocTableRowMetadata,
9-
DocMetaTagsMetadata,
10-
PageHeaderTableRowMetadata,
11-
MetadataTableCell
8+
type DocTableRowMetadata,
9+
type DocMetaTagsMetadata,
10+
type PageHeaderTableRowMetadata,
11+
type MetadataTableCell
1212
} from './types'
1313
import { ELEMENT_LIMIT } from './common'
1414
import { TableNodeExtractor } from './nodes'
15-
import { TableContainer } from './container'
15+
import { type TableContainer } from './container'
1616

1717
interface DocMetadataExtractor {
1818
extractName: (doc: Document) => string

dev/doc-import-tool/src/extract/nodes.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Document, Element, AnyNode as AnyDomNode, AnyNode } from 'domhandler'
1+
import { type Document, type Element, type AnyNode as AnyDomNode, type AnyNode } from 'domhandler'
22
import { ElementType } from 'htmlparser2'
33
import {
44
compareDocumentPosition,
@@ -10,9 +10,9 @@ import {
1010
removeSubsets
1111
} from 'domutils'
1212

13-
import { NodeType, ListParams, TableParams, GenericParams, TocParaSeqParams, TagsWithTextSpec, TagsSpec } from './types'
13+
import { NodeType, type ListParams, type TableParams, type GenericParams, type TocParaSeqParams, type TagsWithTextSpec, type TagsSpec } from './types'
1414
import { clean, compareStrExact } from '../helpers'
15-
import { Container, GenericContainer, ListContainer, TableContainer } from './container'
15+
import { type Container, GenericContainer, ListContainer, TableContainer } from './container'
1616

1717
// Copied from domutils ambient const enums to solve 'isolatedModules' is enabled
1818
const enum DocumentPosition {

dev/doc-import-tool/src/extract/sections.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Document } from 'domhandler'
2-
import { Markup } from '@hcengineering/core'
1+
import { type Document } from 'domhandler'
2+
import { type Markup } from '@hcengineering/core'
33

4-
import { GenericNodeSpec, NodeType, SectionSpec, SectionType, TocSectionSpec } from './types'
5-
import { AnyContainer, createNodeExtractor } from './nodes'
4+
import { type GenericNodeSpec, NodeType, type SectionSpec, SectionType, type TocSectionSpec } from './types'
5+
import { type AnyContainer, createNodeExtractor } from './nodes'
66

77
/**
88
* @public

dev/doc-import-tool/src/import.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import attachment, { Attachment } from '@hcengineering/attachment'
1+
import attachment, { type Attachment } from '@hcengineering/attachment'
22
import { getClient as getCollaboratorClient } from '@hcengineering/collaborator-client'
33
import documents, {
4-
ChangeControl,
5-
ControlledDocument,
4+
type ChangeControl,
5+
type ControlledDocument,
66
DEFAULT_PERIODIC_REVIEW_INTERVAL,
7-
Document,
8-
DocumentCategory,
7+
type Document,
8+
type DocumentCategory,
99
DocumentState,
10-
DocumentTemplate,
10+
type DocumentTemplate,
1111
createChangeControl,
1212
createControlledDocFromTemplate,
1313
createDocumentTemplate
1414
} from '@hcengineering/controlled-documents'
1515
import core, {
16-
AttachedData,
17-
BackupClient,
18-
Client as CoreClient,
19-
Data,
20-
MeasureContext,
21-
Ref,
16+
type AttachedData,
17+
type BackupClient,
18+
type Client as CoreClient,
19+
type Data,
20+
type MeasureContext,
21+
type Ref,
2222
TxOperations,
2323
generateId,
2424
makeDocCollabId,
@@ -30,9 +30,9 @@ import { generateToken } from '@hcengineering/server-token'
3030
import { findAll, getOuterHTML } from 'domutils'
3131
import { parseDocument } from 'htmlparser2'
3232

33-
import { Config } from './config'
34-
import { ExtractedFile } from './extract/extract'
35-
import { ExtractedSection } from './extract/sections'
33+
import { type Config } from './config'
34+
import { type ExtractedFile } from './extract/extract'
35+
import { type ExtractedSection } from './extract/sections'
3636

3737
export default async function importExtractedFile (
3838
ctx: MeasureContext,

dev/doc-import-tool/src/index.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
//
15-
import { Employee } from '@hcengineering/contact'
16-
import documents, { DocumentSpace } from '@hcengineering/controlled-documents'
17-
import { MeasureMetricsContext, Ref, systemAccountUuid, WorkspaceUuid, type WorkspaceDataId } from '@hcengineering/core'
15+
import { type Employee } from '@hcengineering/contact'
16+
import documents, { type DocumentSpace } from '@hcengineering/controlled-documents'
17+
import {
18+
MeasureMetricsContext,
19+
type Ref,
20+
systemAccountUuid,
21+
type WorkspaceUuid,
22+
type WorkspaceDataId
23+
} from '@hcengineering/core'
1824
import { setMetadata } from '@hcengineering/platform'
1925
import serverClientPlugin from '@hcengineering/server-client'
2026
import { type StorageAdapter } from '@hcengineering/server-core'
@@ -23,7 +29,7 @@ import serverToken, { generateToken } from '@hcengineering/server-token'
2329
import { program } from 'commander'
2430

2531
import { importDoc } from './commands'
26-
import { Config } from './config'
32+
import { type Config } from './config'
2733
import { getBackend } from './convert/convert'
2834

2935
/**

dev/doc-import-tool/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./node_modules/@hcengineering/platform-rig/profiles/default/tsconfig.json",
2+
"extends": "./node_modules/@hcengineering/platform-rig/profiles/node/tsconfig.json",
33

44
"compilerOptions": {
55
"rootDir": "./src",

dev/import-tool/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"@typescript-eslint/eslint-plugin": "^6.11.0",
3737
"eslint": "^8.54.0",
3838
"ts-node": "^10.8.0",
39-
"esbuild": "^0.24.2",
40-
"@types/node": "~20.11.16",
39+
"esbuild": "^0.25.1",
40+
"@types/node": "^22.13.5",
4141
"@typescript-eslint/parser": "^6.11.0",
42-
"typescript": "^5.3.3",
42+
"typescript": "^5.8.2",
4343
"jest": "^29.7.0",
4444
"ts-jest": "^29.1.1",
4545
"@types/jest": "^29.5.5",

dev/prod/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
"devDependencies": {
2626
"@hcengineering/platform-rig": "^0.6.0",
27-
"@types/node": "~20.11.16",
27+
"@types/node": "^22.13.5",
2828
"autoprefixer": "^10.4.14",
2929
"browserslist": "^4.24.4",
3030
"compression-webpack-plugin": "^10.0.0",
3131
"cross-env": "~7.0.3",
3232
"css-loader": "^5.2.1",
3333
"dotenv-webpack": "^8.0.1",
34-
"esbuild": "^0.24.2",
34+
"esbuild": "^0.25.1",
3535
"esbuild-loader": "^4.0.3",
3636
"file-loader": "^6.2.0",
3737
"fork-ts-checker-webpack-plugin": "^9.0.2",
@@ -46,9 +46,9 @@
4646
"svelte-preprocess": "^5.1.3",
4747
"svgo-loader": "^3.0.0",
4848
"ts-loader": "^9.2.5",
49-
"typescript": "^5.3.3",
49+
"typescript": "^5.8.2",
5050
"update-browserslist-db": "^1.1.2",
51-
"webpack": "^5.97.1",
51+
"webpack": "^5.98.0",
5252
"webpack-bundle-analyzer": "^4.10.2",
5353
"webpack-cli": "^5.1.4",
5454
"webpack-dev-server": "^4.11.1"

dev/prod/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"outDir": "./dist/",
44
"noImplicitAny": true,
55
"module": "esnext",
6-
"target": "es2021",
6+
"target": "es2024",
77
"allowJs": true,
88
"declaration": true,
99
"sourceMap": true,

0 commit comments

Comments
 (0)