Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/build/browserslist_index/browserslist_index.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/build/jsenv_core_node_modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ function ansiRegex({onlyFirst = false} = {}) {
// Valid string terminator sequences are BEL, ESC\, and 0x9c
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';

// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
// OSC sequences only: ESC ] ... ST
// The payload stops at the first terminator character rather than scanning ahead for one, so an unterminated `ESC ]` cannot rescan the rest of the input. Terminals likewise abort a control string on an unexpected ESC.
const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;

// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
Expand Down
10 changes: 10 additions & 0 deletions dist/client/autoreload/autoreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { parseSrcSet, stringifySrcSet } from "./jsenv_core_packages.js";
import { urlHotMetas, dispatchBeforeFullReload, dispatchBeforePartialReload, dispatchAfterPartialReload, dispatchBeforePrune } from "../import_meta_hot/import_meta_hot.js";

const initAutoreload = ({ mainFilePath }) => {
let fullReloadRequested = false;
const reloader = {
urlHotMetas,
status: {
Expand Down Expand Up @@ -51,6 +52,14 @@ const initAutoreload = ({ mainFilePath }) => {
},
currentExecution: null,
reload: () => {
if (fullReloadRequested) {
// The document is already being replaced; anything we would do here
// dies with the current page. Calling window.location.reload() again
// would abort the navigation already in flight (net::ERR_ABORTED).
// This happens for a single file edit: the change is sent first, then
// the prune of the urls it no longer references arrives a few ms later.
return;
}
const someEffectIsFullReload = reloader.changes.value.some(
(reloadMessage) => {
if (reloadMessage.type === "full") {
Expand All @@ -77,6 +86,7 @@ const initAutoreload = ({ mainFilePath }) => {
},
);
if (someEffectIsFullReload) {
fullReloadRequested = true;
dispatchBeforeFullReload();
reloadHtmlPage();
return;
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/core",
"version": "41.4.12",
"version": "41.4.13",
"type": "module",
"description": "Tool to develop, test and build js projects",
"repository": {
Expand Down Expand Up @@ -72,21 +72,21 @@
"test:snapshot_clear": "npx @jsenv/filesystem clear **/tests/**/side_effects/"
},
"dependencies": {
"@jsenv/ast": "6.9.0",
"@jsenv/js-module-fallback": "1.4.39",
"@jsenv/ast": "6.9.1",
"@jsenv/js-module-fallback": "1.5.0",
"@jsenv/plugin-bundling": "2.10.16",
"@jsenv/plugin-minification": "1.7.7",
"@jsenv/plugin-supervisor": "1.8.10",
"@jsenv/plugin-transpilation": "1.5.80",
"@jsenv/server": "17.6.0",
"@jsenv/plugin-minification": "1.7.8",
"@jsenv/plugin-supervisor": "1.8.11",
"@jsenv/plugin-transpilation": "1.6.0",
"@jsenv/server": "17.6.1",
"@jsenv/sourcemap": "1.4.2",
"react-table": "7.8.0"
},
"devDependencies": {
"@babel/eslint-parser": "7.28.6",
"@babel/plugin-syntax-decorators": "7.28.6",
"@babel/eslint-parser": "7.29.7",
"@babel/plugin-syntax-decorators": "7.29.7",
"@babel/plugin-syntax-import-attributes": "7.29.7",
"@babel/plugin-syntax-optional-chaining-assign": "7.28.6",
"@babel/plugin-syntax-optional-chaining-assign": "7.29.7",
"@jsenv/abort": "workspace:*",
"@jsenv/assert": "workspace:*",
"@jsenv/cli": "workspace:*",
Expand Down Expand Up @@ -114,17 +114,17 @@
"@jsenv/url-meta": "workspace:*",
"@jsenv/urls": "workspace:*",
"@jsenv/utils": "workspace:*",
"@playwright/browser-chromium": "1.61.1",
"@playwright/browser-firefox": "1.61.1",
"@playwright/browser-webkit": "1.61.1",
"@playwright/browser-chromium": "1.62.1",
"@playwright/browser-firefox": "1.62.1",
"@playwright/browser-webkit": "1.62.1",
"babel-plugin-transform-async-to-promises": "0.8.18",
"eslint": "9.39.2",
"eslint-plugin-import-x": "4.17.1",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-regexp": "3.1.1",
"globals": "17.7.0",
"open": "11.0.0",
"playwright": "1.61.1",
"eslint-plugin-regexp": "3.2.0",
"globals": "17.11.0",
"open": "11.0.1",
"playwright": "1.62.1",
"preact": "11.0.0-beta.2",
"prettier": "3.9.6",
"prettier-plugin-css-order": "git+https://github.com/dmail-fork/prettier-plugin-css-order.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/database-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@jsenv/database": "0.0.13",
"@jsenv/server": "17.6.0",
"@jsenv/server": "17.6.1",
"@jsenv/urls": "2.9.10",
"@tanstack/table-core": "8.21.3",
"jsonwebtoken": "9.0.3",
Expand All @@ -42,7 +42,7 @@
"@jsenv/navi": "../../frontend/navi",
"@jsenv/plugin-preact": "../../related/plugin-preact",
"@jsenv/server": "../../server",
"@preact/signals": "2.9.4",
"@preact/signals": "2.11.1",
"preact": "11.0.0-beta.2"
},
"publishConfig": {
Expand Down
4 changes: 3 additions & 1 deletion packages/backend/server/dist/ws/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ function requirePermessageDeflate () {
(typeof opts.serverMaxWindowBits === 'number' &&
opts.serverMaxWindowBits > params.server_max_window_bits))) ||
(typeof opts.clientMaxWindowBits === 'number' &&
!params.client_max_window_bits)
(typeof params.client_max_window_bits === 'number'
? opts.clientMaxWindowBits > params.client_max_window_bits
: !params.client_max_window_bits))
) {
return false;
}
Expand Down
10 changes: 5 additions & 5 deletions packages/backend/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/server",
"version": "17.6.0",
"version": "17.6.1",
"type": "module",
"description": "A modern Node.js HTTP server with declarative routing, content negotiation, and WebSocket support",
"repository": {
Expand Down Expand Up @@ -54,11 +54,11 @@
"@jsenv/url-pattern": "../../tooling/url-pattern",
"@jsenv/urls": "../../tooling/urls",
"@jsenv/utils": "../../tooling/utils",
"eventsource": "4.1.0",
"eventsource": "5.1.0",
"formidable": "3.5.4",
"playwright": "1.61.1",
"undici": "8.8.0",
"ws": "8.21.1"
"playwright": "1.62.1",
"undici": "8.10.0",
"ws": "8.21.3"
},
"publishConfig": {
"access": "public"
Expand Down
Loading
Loading