Compare commits

...

2 Commits

Author SHA1 Message Date
88595335ea v2.3.11
Some checks failed
Default (tags) / security (push) Failing after 18s
Default (tags) / test (push) Failing after 49s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2025-12-11 17:14:05 +00:00
313362b795 fix(typedserver): Add cross-origin security headers to element mode dev server 2025-12-11 17:14:05 +00:00
4 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog # Changelog
## 2025-12-11 - 2.3.11 - fix(typedserver)
Add cross-origin security headers to element mode dev server
- Set crossOriginOpenerPolicy to 'same-origin' and crossOriginEmbedderPolicy to 'require-corp' on the TypedServer used in element mode.
- Improves security and enables cross-origin isolation (e.g. for SharedArrayBuffer) during local development.
- Applies to the development server serving ./dist_watch/ on port 3002.
## 2025-12-11 - 2.3.10 - fix(dependencies) ## 2025-12-11 - 2.3.10 - fix(dependencies)
Bump dependency versions: @types/node to ^25.0.0 and @push.rocks/smartwatch to ^6.2.4 Bump dependency versions: @types/node to ^25.0.0 and @push.rocks/smartwatch to ^6.2.4

View File

@@ -1,6 +1,6 @@
{ {
"name": "@git.zone/tswatch", "name": "@git.zone/tswatch",
"version": "2.3.10", "version": "2.3.11",
"private": false, "private": false,
"description": "A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.", "description": "A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.",
"exports": { "exports": {

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tswatch', name: '@git.zone/tswatch',
version: '2.3.10', version: '2.3.11',
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.' description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
} }

View File

@@ -73,6 +73,10 @@ export class TsWatch {
port: 3002, port: 3002,
compression: true, compression: true,
spaFallback: true, spaFallback: true,
securityHeaders: {
crossOriginOpenerPolicy: 'same-origin',
crossOriginEmbedderPolicy: 'require-corp',
},
}); });
const bundleAndReloadElement = async () => { const bundleAndReloadElement = async () => {