@itwin/core-frontend 5.13.0-dev.4 → 5.13.0-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-frontend",
3
- "version": "5.13.0-dev.4",
3
+ "version": "5.13.0-dev.6",
4
4
  "description": "iTwin.js frontend components",
5
5
  "main": "lib/cjs/core-frontend.js",
6
6
  "module": "lib/esm/core-frontend.js",
@@ -23,14 +23,14 @@
23
23
  "url": "http://www.bentley.com"
24
24
  },
25
25
  "peerDependencies": {
26
- "@itwin/appui-abstract": "5.13.0-dev.4",
27
- "@itwin/ecschema-metadata": "5.13.0-dev.4",
28
- "@itwin/core-bentley": "5.13.0-dev.4",
29
- "@itwin/core-common": "5.13.0-dev.4",
30
- "@itwin/core-geometry": "5.13.0-dev.4",
31
- "@itwin/core-orbitgt": "5.13.0-dev.4",
32
- "@itwin/core-quantity": "5.13.0-dev.4",
33
- "@itwin/ecschema-rpcinterface-common": "5.13.0-dev.4"
26
+ "@itwin/core-bentley": "5.13.0-dev.6",
27
+ "@itwin/appui-abstract": "5.13.0-dev.6",
28
+ "@itwin/core-geometry": "5.13.0-dev.6",
29
+ "@itwin/core-orbitgt": "5.13.0-dev.6",
30
+ "@itwin/core-common": "5.13.0-dev.6",
31
+ "@itwin/core-quantity": "5.13.0-dev.6",
32
+ "@itwin/ecschema-metadata": "5.13.0-dev.6",
33
+ "@itwin/ecschema-rpcinterface-common": "5.13.0-dev.6"
34
34
  },
35
35
  "//devDependencies": [
36
36
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@bentley/aec-units-schema": "^1.0.3",
41
41
  "@bentley/formats-schema": "^1.0.0",
42
- "@bentley/units-schema": "^1.0.10",
42
+ "@bentley/units-schema": "^1.0.11",
43
43
  "@itwin/object-storage-core": "^3.0.4",
44
44
  "@itwin/eslint-plugin": "^6.0.0",
45
45
  "@types/chai-as-promised": "^7",
@@ -50,25 +50,23 @@
50
50
  "@vitest/coverage-v8": "^4.1.10",
51
51
  "cpx2": "^8.0.0",
52
52
  "eslint": "^9.31.0",
53
- "glob": "^13.0.6",
54
53
  "playwright": "~1.56.1",
55
54
  "rimraf": "^6.0.1",
56
55
  "sinon": "^17.0.2",
57
- "source-map-loader": "^5.0.0",
58
56
  "typescript": "~5.6.2",
57
+ "vite": "^6.4.3",
59
58
  "vitest": "^4.1.10",
60
59
  "vite-multiple-assets": "^1.3.1",
61
60
  "vite-plugin-static-copy": "2.2.0",
62
- "webpack": "^5.97.1",
63
- "@itwin/core-bentley": "5.13.0-dev.4",
64
- "@itwin/core-geometry": "5.13.0-dev.4",
65
- "@itwin/appui-abstract": "5.13.0-dev.4",
66
- "@itwin/core-common": "5.13.0-dev.4",
67
- "@itwin/build-tools": "5.13.0-dev.4",
68
- "@itwin/core-orbitgt": "5.13.0-dev.4",
69
- "@itwin/core-quantity": "5.13.0-dev.4",
70
- "@itwin/ecschema-rpcinterface-common": "5.13.0-dev.4",
71
- "@itwin/ecschema-metadata": "5.13.0-dev.4"
61
+ "@itwin/build-tools": "5.13.0-dev.6",
62
+ "@itwin/appui-abstract": "5.13.0-dev.6",
63
+ "@itwin/core-common": "5.13.0-dev.6",
64
+ "@itwin/core-bentley": "5.13.0-dev.6",
65
+ "@itwin/core-geometry": "5.13.0-dev.6",
66
+ "@itwin/core-quantity": "5.13.0-dev.6",
67
+ "@itwin/core-orbitgt": "5.13.0-dev.6",
68
+ "@itwin/ecschema-metadata": "5.13.0-dev.6",
69
+ "@itwin/ecschema-rpcinterface-common": "5.13.0-dev.6"
72
70
  },
73
71
  "//dependencies": [
74
72
  "NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
@@ -79,18 +77,17 @@
79
77
  "@loaders.gl/draco": "~4.3.4",
80
78
  "fuse.js": "^3.3.0",
81
79
  "wms-capabilities": "0.4.0",
82
- "@itwin/core-i18n": "5.13.0-dev.4",
83
- "@itwin/webgl-compatibility": "5.13.0-dev.4"
80
+ "@itwin/core-i18n": "5.13.0-dev.6",
81
+ "@itwin/webgl-compatibility": "5.13.0-dev.6"
84
82
  },
85
83
  "scripts": {
86
- "build": "npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco",
84
+ "build": "npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s build:workers && npm run -s copy:draco",
87
85
  "build:cjs": "npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs",
88
86
  "build:esm": "npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm",
89
87
  "clean": "rimraf -g lib .rush/temp/package-deps*.json",
90
88
  "copy:public": "cpx \"./src/public/**/*\" ./lib/public",
91
89
  "copy:js:cjs": "cpx \"./src/**/*.js\" ./lib/cjs",
92
90
  "copy:js:esm": "cpx \"./src/**/*.js\" ./lib/esm",
93
- "copy:workers": "cpx \"./lib/workers/webpack/parse-imdl-worker.js\" ./lib/public/scripts",
94
91
  "copy:draco": "cpx \"./node_modules/@loaders.gl/draco/dist/libs/*\" ./lib/public/scripts",
95
92
  "docs": "betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract",
96
93
  "extract": "betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract",
@@ -100,10 +97,9 @@
100
97
  "lint-fix": "eslint --fix -f visualstudio \"./src/**/*.ts\" 1>&2",
101
98
  "lint-deprecation": "eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \"./src/**/*.ts\"",
102
99
  "pseudolocalize": "betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO",
103
- "test": "npm run webpackTestWorker && vitest --run",
104
- "cover": "npm run webpackTestWorker && vitest --run",
105
- "webpackTests": "webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker",
106
- "webpackTestWorker": "webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \"./lib/test/test-worker.js\" ./lib/test",
107
- "webpackWorkers": "webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"
100
+ "test": "npm run build:test-worker && vitest --run",
101
+ "cover": "npm run build:test-worker && vitest --run",
102
+ "build:test-worker": "vite build --config ./src/test/worker/vite.config.mts 1>&2",
103
+ "build:workers": "rimraf lib/workers/webpack && vite build --config ./src/workers/ImdlParser/vite.config.mts 1>&2"
108
104
  }
109
105
  }
@@ -1,50 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- const path = require("path");
7
- // const webpack = require("webpack");
8
- const { globSync } = require("glob");
9
-
10
- const frontendLib = path.resolve(__dirname, "../../../lib");
11
-
12
- module.exports = [{
13
- // stats: "verbose",
14
- mode: "production",
15
- entry: globSync(
16
- path.resolve(frontendLib, "esm/workers/ImdlParser/Worker.js"),
17
- { windowsPathsNoEscape: true }
18
- ),
19
- output: {
20
- path: path.resolve(frontendLib, "workers/webpack/"),
21
- filename: "parse-imdl-worker.js",
22
- devtoolModuleFilenameTemplate: "file:///[absolute-resource-path]",
23
- },
24
- // add a fallback for fs and path to prevent Webpack from trying to polyfill them
25
- // This is necessary because these modules are not available in the browser environment but draco3d in theory uses them in non-browser cases which we are not exercising
26
- resolve: {
27
- fallback: {
28
- fs: false, // Set 'fs' to false to prevent Webpack from trying to polyfill it
29
- path: false, // Set 'path' to false to prevent Webpack from trying to polyfill it
30
- }
31
- },
32
- module: {
33
- rules: [
34
- {
35
- test: /\.js$/,
36
- use: "source-map-loader",
37
- sideEffects: false,
38
- enforce: "pre"
39
- },
40
- {
41
- test: /@itwin/,
42
- sideEffects: false,
43
- },
44
- ],
45
- },
46
- stats: "errors-only",
47
- optimization: {
48
- nodeEnv: "production"
49
- },
50
- }];
@@ -1,50 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
-
6
- const path = require("path");
7
- // const webpack = require("webpack");
8
- const { globSync } = require("glob");
9
-
10
- const frontendLib = path.resolve(__dirname, "../../../lib");
11
-
12
- module.exports = [{
13
- // stats: "verbose",
14
- mode: "production",
15
- entry: globSync(
16
- path.resolve(frontendLib, "esm/workers/ImdlParser/Worker.js"),
17
- { windowsPathsNoEscape: true }
18
- ),
19
- output: {
20
- path: path.resolve(frontendLib, "workers/webpack/"),
21
- filename: "parse-imdl-worker.js",
22
- devtoolModuleFilenameTemplate: "file:///[absolute-resource-path]",
23
- },
24
- // add a fallback for fs and path to prevent Webpack from trying to polyfill them
25
- // This is necessary because these modules are not available in the browser environment but draco3d in theory uses them in non-browser cases which we are not exercising
26
- resolve: {
27
- fallback: {
28
- fs: false, // Set 'fs' to false to prevent Webpack from trying to polyfill it
29
- path: false, // Set 'path' to false to prevent Webpack from trying to polyfill it
30
- }
31
- },
32
- module: {
33
- rules: [
34
- {
35
- test: /\.js$/,
36
- use: "source-map-loader",
37
- sideEffects: false,
38
- enforce: "pre"
39
- },
40
- {
41
- test: /@itwin/,
42
- sideEffects: false,
43
- },
44
- ],
45
- },
46
- stats: "errors-only",
47
- optimization: {
48
- nodeEnv: "production"
49
- },
50
- }];