@prosopo/client-bundle-example 2.11.5 → 2.11.7
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/.turbo/turbo-build$colon$cjs.log +2 -2
- package/.turbo/{turbo-build.log → turbo-build$colon$esm.log} +6 -7
- package/.turbo/turbo-build$colon$tsc.log +10 -10
- package/.turbo/turbo-build$colon$types.log +1 -0
- package/CHANGELOG.md +21 -0
- package/package.json +15 -16
- package/vite.config.ts +9 -9
- /package/dist/{_virtual → esm/_virtual}/_rolldown/runtime.js +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{plugins → esm/plugins}/pages.js +0 -0
|
@@ -21,7 +21,7 @@ ViteCommonJSConfig: .
|
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
24
|
-
[36mvite v8.1.
|
|
24
|
+
[36mvite v8.1.6 [32mbuilding ssr environment for production...[36m[39m
|
|
25
25
|
Bundle build started
|
|
26
26
|
[2K
|
|
27
27
|
✓ 3 modules transformed.
|
|
@@ -30,4 +30,4 @@ computing gzip size...
|
|
|
30
30
|
dist/cjs/index.cjs 0.71 kB │ gzip: 0.27 kB
|
|
31
31
|
dist/cjs/plugins/pages.cjs 4.95 kB │ gzip: 1.25 kB
|
|
32
32
|
|
|
33
|
-
[32m✓ built in
|
|
33
|
+
[32m✓ built in 35ms[39m
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
$
|
|
2
|
-
$ vite build --config vite.esm.config.ts --mode production
|
|
1
|
+
$ vite build --config vite.esm.config.ts --mode ${NODE_ENV:-development}
|
|
3
2
|
ViteEsmConfig: .
|
|
4
3
|
{
|
|
5
4
|
tsConfigPaths: [
|
|
@@ -22,14 +21,14 @@ ViteEsmConfig: .
|
|
|
22
21
|
]
|
|
23
22
|
}
|
|
24
23
|
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
25
|
-
[36mvite v8.1.
|
|
24
|
+
[36mvite v8.1.6 [32mbuilding ssr environment for production...[36m[39m
|
|
26
25
|
Bundle build started
|
|
27
26
|
[2K
|
|
28
27
|
✓ 3 modules transformed.
|
|
29
28
|
rendering chunks...
|
|
30
29
|
computing gzip size...
|
|
31
|
-
dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
|
|
32
|
-
dist/index.js 0.42 kB │ gzip: 0.19 kB
|
|
33
|
-
dist/plugins/pages.js 4.32 kB │ gzip: 1.20 kB
|
|
30
|
+
dist/esm/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
|
|
31
|
+
dist/esm/index.js 0.42 kB │ gzip: 0.19 kB
|
|
32
|
+
dist/esm/plugins/pages.js 4.32 kB │ gzip: 1.20 kB
|
|
34
33
|
|
|
35
|
-
[32m✓ built in
|
|
34
|
+
[32m✓ built in 44ms[39m
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsc --build --verbose
|
|
2
|
-
|
|
2
|
+
11:54:06 AM - Projects in this build:
|
|
3
3
|
* ../../dev/config/tsconfig.json
|
|
4
4
|
* ../../packages/util/tsconfig.json
|
|
5
5
|
* ../../packages/logger/tsconfig.json
|
|
@@ -9,21 +9,21 @@ $ tsc --build --verbose
|
|
|
9
9
|
* ../../packages/types/tsconfig.json
|
|
10
10
|
* tsconfig.json
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
11:54:06 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
11:54:06 AM - Project '../../packages/util/tsconfig.json' is up to date because newest input '../../packages/util/src/url.ts' is older than output '../../packages/util/dist/tsc/tsconfig.tsbuildinfo'
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
11:54:06 AM - Project '../../packages/logger/tsconfig.json' is up to date because newest input '../../packages/logger/src/index.ts' is older than output '../../packages/logger/dist/tsc/tsconfig.tsbuildinfo'
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
11:54:06 AM - Project '../../packages/dotenv/tsconfig.json' is up to date because newest input '../../packages/dotenv/src/env.ts' is older than output '../../packages/dotenv/dist/tsc/tsconfig.tsbuildinfo'
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
11:54:06 AM - Project '../../packages/locale/tsconfig.json' is up to date because newest input '../../packages/locale/src/process.ts' is older than output '../../packages/locale/dist/tsc/tsconfig.tsbuildinfo'
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
11:54:06 AM - Project '../../packages/util-crypto/tsconfig.json' is up to date because newest input '../../packages/util-crypto/src/types.ts' is older than output '../../packages/util-crypto/dist/tsc/tsconfig.tsbuildinfo'
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
11:54:06 AM - Project '../../packages/types/tsconfig.json' is up to date because newest input '../../packages/types/src/types.test-d.ts' is older than output '../../packages/types/dist/tsc/tsconfig.tsbuildinfo'
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
11:54:06 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
11:54:06 AM - Building project '/home/runner/work/captcha/captcha/demos/client-bundle-example/tsconfig.json'...
|
|
29
29
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ tsc --project tsconfig.types.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @prosopo/client-bundle-example
|
|
2
2
|
|
|
3
|
+
## 2.11.7
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 2086040: Each kind of build now writes to its own folder under dist: dist/esm (vite ESM), dist/cjs (vite CommonJS), dist/types (declarations), dist/tsc (plain tsc), dist/bundle and dist/bundle-webpack (bundles) and dist/native (the Rust addons). Turbo caches each folder separately, so building one variant no longer overwrites or invalidates another. Package exports point at the new folders; anything importing a file from dist by path has to add the variant folder.
|
|
7
|
+
|
|
8
|
+
The Rust addons are no longer committed. They are built into dist/native, in debug for development and tests and fully optimised when NODE_ENV=production, so building them now needs a Rust toolchain.
|
|
9
|
+
|
|
10
|
+
Code that found the repo root or its certificates by climbing a fixed number of folders up from its own file now starts from its package's folder instead (new `packageDir` in @prosopo/util/node). The fixed count stopped working once the build output moved one folder deeper.
|
|
11
|
+
|
|
12
|
+
## 2.11.6
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- fdfa732: The demo's "Fill form" button now fills only the form's own fields. Before,
|
|
16
|
+
it also changed the "Widget language" picker away from "Browser default" to its
|
|
17
|
+
second option. That reloaded the page with the widget in Arabic.
|
|
18
|
+
- 46b97b7: Roll up the open Dependabot updates: express 5 (with `@types/express` 5), dotenv 18, undici 8, geolib 4, vitest 5, vite 8.1.6 everywhere, 17 minor and patch bumps (Babel, mongoose, i18next, ip-address, turbo and others), `@angular/router` in the Angular demo, and a GitHub Actions bump.
|
|
19
|
+
|
|
20
|
+
The whole vitest family moves to 5.0.4, including `@vitest/coverage-v8`, because `@vitest/browser-playwright` 5 only works with vitest 5. The `@types/express-serve-static-core` override moves to 5.1.3 to match `@types/express` 5.
|
|
21
|
+
|
|
22
|
+
`@prosopo/dotenv` now loads env files with `quiet: true`. Since dotenv 17, every load prints an "injected env" line to stderr unless told not to.
|
|
23
|
+
|
|
3
24
|
## 2.11.5
|
|
4
25
|
### Patch Changes
|
|
5
26
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/client-bundle-example",
|
|
3
|
-
"main": "dist/index.js",
|
|
4
|
-
"types": "dist/index.d.ts",
|
|
3
|
+
"main": "dist/esm/index.js",
|
|
4
|
+
"types": "dist/types/index.d.ts",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"import": "./dist/index.js",
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"import": "./dist/esm/index.js",
|
|
9
9
|
"require": "./dist/cjs/index.cjs"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": "^24"
|
|
15
15
|
},
|
|
16
|
-
"version": "2.11.
|
|
16
|
+
"version": "2.11.7",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@emotion/cache": "11.14.0",
|
|
19
|
-
"@prosopo/config": "3.
|
|
20
|
-
"@prosopo/dotenv": "3.0.
|
|
21
|
-
"@prosopo/locale": "3.
|
|
22
|
-
"@prosopo/types": "5.
|
|
19
|
+
"@prosopo/config": "3.5.1",
|
|
20
|
+
"@prosopo/dotenv": "3.0.63",
|
|
21
|
+
"@prosopo/locale": "3.13.1",
|
|
22
|
+
"@prosopo/types": "5.19.0",
|
|
23
23
|
"@types/jsdom": "30.0.0",
|
|
24
24
|
"@types/node": "22.5.5",
|
|
25
|
-
"@vitest/coverage-v8": "
|
|
25
|
+
"@vitest/coverage-v8": "5.0.4",
|
|
26
26
|
"concurrently": "9.0.1",
|
|
27
27
|
"del-cli": "6.0.0",
|
|
28
28
|
"jsdom": "25.0.0",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"tslib": "2.7.0",
|
|
33
33
|
"tsx": "4.20.3",
|
|
34
34
|
"typescript": "5.6.2",
|
|
35
|
-
"vite": "8.1.
|
|
36
|
-
"vitest": "
|
|
35
|
+
"vite": "8.1.6",
|
|
36
|
+
"vitest": "5.0.4"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -41,13 +41,12 @@
|
|
|
41
41
|
"directory": "demos/client-bundle-example"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"clean": "del-cli --verbose dist
|
|
45
|
-
"build": "
|
|
46
|
-
"build:cross-env": "vite build --config vite.esm.config.ts",
|
|
44
|
+
"clean": "del-cli --verbose dist",
|
|
45
|
+
"build:esm": "vite build --config vite.esm.config.ts --mode ${NODE_ENV:-development}",
|
|
47
46
|
"build:tsc": "tsc --build --verbose",
|
|
48
47
|
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
49
48
|
"bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
50
|
-
"
|
|
49
|
+
"build:types": "tsc --project tsconfig.types.json",
|
|
51
50
|
"start": "NODE_ENV=${NODE_ENV:-development}; vite serve ./src --port 9232 --config vite.config.ts --mode=$NODE_ENV",
|
|
52
51
|
"test": "NODE_ENV=${NODE_ENV:-test}; pnpm exec vitest run --config ./vite.test.config.ts"
|
|
53
52
|
}
|
package/vite.config.ts
CHANGED
|
@@ -190,7 +190,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
190
190
|
commonjsOptions: {
|
|
191
191
|
transformMixedEsModules: true,
|
|
192
192
|
},
|
|
193
|
-
outDir: "dist",
|
|
193
|
+
outDir: "dist/bundle",
|
|
194
194
|
emptyOutDir: false,
|
|
195
195
|
rollupOptions: {
|
|
196
196
|
input: {
|
|
@@ -287,35 +287,35 @@ export default defineConfig(({ command, mode }) => {
|
|
|
287
287
|
name: "copy-files",
|
|
288
288
|
closeBundle() {
|
|
289
289
|
// This runs after all other plugins have processed files
|
|
290
|
-
console.log("Copying additional files from src to dist...");
|
|
290
|
+
console.log("Copying additional files from src to dist/bundle...");
|
|
291
291
|
// Only copy assets and other non-HTML files since HTML files are processed by Vite
|
|
292
292
|
const srcAssetsDir = path.resolve(__dirname, "src/assets");
|
|
293
293
|
|
|
294
|
-
const destAssetsDir = path.resolve(__dirname, "dist/assets");
|
|
294
|
+
const destAssetsDir = path.resolve(__dirname, "dist/bundle/assets");
|
|
295
295
|
if (fs.existsSync(srcAssetsDir)) {
|
|
296
296
|
copyDirContents(srcAssetsDir, destAssetsDir);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
// Copy any other necessary directories
|
|
300
300
|
const srcPluginsDir = path.resolve(__dirname, "src/plugins");
|
|
301
|
-
const destPluginsDir = path.resolve(__dirname, "dist/plugins");
|
|
301
|
+
const destPluginsDir = path.resolve(__dirname, "dist/bundle/plugins");
|
|
302
302
|
if (fs.existsSync(srcPluginsDir)) {
|
|
303
303
|
copyDirContents(srcPluginsDir, destPluginsDir);
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
// Final step: move any content from dist/src to dist root
|
|
307
|
-
const distSrcDir = path.resolve(__dirname, "dist/src");
|
|
308
|
-
const distDir = path.resolve(__dirname, "dist");
|
|
307
|
+
const distSrcDir = path.resolve(__dirname, "dist/bundle/src");
|
|
308
|
+
const distDir = path.resolve(__dirname, "dist/bundle");
|
|
309
309
|
if (fs.existsSync(distSrcDir)) {
|
|
310
|
-
console.log("Moving files from dist/src to dist
|
|
310
|
+
console.log("Moving files from dist/bundle/src to dist/bundle...");
|
|
311
311
|
moveDirectoryContents(distSrcDir, distDir, true);
|
|
312
312
|
|
|
313
313
|
// Try to remove the now-empty dist/src directory
|
|
314
314
|
try {
|
|
315
315
|
fs.rmdirSync(distSrcDir);
|
|
316
|
-
console.log("Removed empty dist/src directory");
|
|
316
|
+
console.log("Removed empty dist/bundle/src directory");
|
|
317
317
|
} catch (err) {
|
|
318
|
-
console.warn("Could not remove dist/src directory:", err);
|
|
318
|
+
console.warn("Could not remove dist/bundle/src directory:", err);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|