Skip to content

Commit 70d8099

Browse files
authored
Merge pull request #537 from jsenv/advanced_gesture
Advanced gesture
2 parents fe5f746 + aa7fe8b commit 70d8099

271 files changed

Lines changed: 24817 additions & 19308 deletions

File tree

Some content is hidden

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

dist/build/browserslist_index/browserslist_index.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/build/jsenv_core_node_modules.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ function ansiRegex({onlyFirst = false} = {}) {
223223
// Valid string terminator sequences are BEL, ESC\, and 0x9c
224224
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
225225

226-
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
227-
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
226+
// OSC sequences only: ESC ] ... ST
227+
// 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.
228+
const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;
228229

229230
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
230231
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';

dist/client/autoreload/autoreload.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { parseSrcSet, stringifySrcSet } from "./jsenv_core_packages.js";
22
import { urlHotMetas, dispatchBeforeFullReload, dispatchBeforePartialReload, dispatchAfterPartialReload, dispatchBeforePrune } from "../import_meta_hot/import_meta_hot.js";
33

44
const initAutoreload = ({ mainFilePath }) => {
5+
let fullReloadRequested = false;
56
const reloader = {
67
urlHotMetas,
78
status: {
@@ -51,6 +52,14 @@ const initAutoreload = ({ mainFilePath }) => {
5152
},
5253
currentExecution: null,
5354
reload: () => {
55+
if (fullReloadRequested) {
56+
// The document is already being replaced; anything we would do here
57+
// dies with the current page. Calling window.location.reload() again
58+
// would abort the navigation already in flight (net::ERR_ABORTED).
59+
// This happens for a single file edit: the change is sent first, then
60+
// the prune of the urls it no longer references arrives a few ms later.
61+
return;
62+
}
5463
const someEffectIsFullReload = reloader.changes.value.some(
5564
(reloadMessage) => {
5665
if (reloadMessage.type === "full") {
@@ -77,6 +86,7 @@ const initAutoreload = ({ mainFilePath }) => {
7786
},
7887
);
7988
if (someEffectIsFullReload) {
89+
fullReloadRequested = true;
8090
dispatchBeforeFullReload();
8191
reloadHtmlPage();
8292
return;

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsenv/core",
3-
"version": "41.4.12",
3+
"version": "41.4.13",
44
"type": "module",
55
"description": "Tool to develop, test and build js projects",
66
"repository": {
@@ -72,21 +72,21 @@
7272
"test:snapshot_clear": "npx @jsenv/filesystem clear **/tests/**/side_effects/"
7373
},
7474
"dependencies": {
75-
"@jsenv/ast": "6.9.0",
76-
"@jsenv/js-module-fallback": "1.4.39",
75+
"@jsenv/ast": "6.9.1",
76+
"@jsenv/js-module-fallback": "1.5.0",
7777
"@jsenv/plugin-bundling": "2.10.16",
78-
"@jsenv/plugin-minification": "1.7.7",
79-
"@jsenv/plugin-supervisor": "1.8.10",
80-
"@jsenv/plugin-transpilation": "1.5.80",
81-
"@jsenv/server": "17.6.0",
78+
"@jsenv/plugin-minification": "1.7.8",
79+
"@jsenv/plugin-supervisor": "1.8.11",
80+
"@jsenv/plugin-transpilation": "1.6.0",
81+
"@jsenv/server": "17.6.1",
8282
"@jsenv/sourcemap": "1.4.2",
8383
"react-table": "7.8.0"
8484
},
8585
"devDependencies": {
86-
"@babel/eslint-parser": "7.28.6",
87-
"@babel/plugin-syntax-decorators": "7.28.6",
86+
"@babel/eslint-parser": "7.29.7",
87+
"@babel/plugin-syntax-decorators": "7.29.7",
8888
"@babel/plugin-syntax-import-attributes": "7.29.7",
89-
"@babel/plugin-syntax-optional-chaining-assign": "7.28.6",
89+
"@babel/plugin-syntax-optional-chaining-assign": "7.29.7",
9090
"@jsenv/abort": "workspace:*",
9191
"@jsenv/assert": "workspace:*",
9292
"@jsenv/cli": "workspace:*",
@@ -114,17 +114,17 @@
114114
"@jsenv/url-meta": "workspace:*",
115115
"@jsenv/urls": "workspace:*",
116116
"@jsenv/utils": "workspace:*",
117-
"@playwright/browser-chromium": "1.61.1",
118-
"@playwright/browser-firefox": "1.61.1",
119-
"@playwright/browser-webkit": "1.61.1",
117+
"@playwright/browser-chromium": "1.62.1",
118+
"@playwright/browser-firefox": "1.62.1",
119+
"@playwright/browser-webkit": "1.62.1",
120120
"babel-plugin-transform-async-to-promises": "0.8.18",
121121
"eslint": "9.39.2",
122122
"eslint-plugin-import-x": "4.17.1",
123123
"eslint-plugin-react": "7.37.5",
124-
"eslint-plugin-regexp": "3.1.1",
125-
"globals": "17.7.0",
126-
"open": "11.0.0",
127-
"playwright": "1.61.1",
124+
"eslint-plugin-regexp": "3.2.0",
125+
"globals": "17.11.0",
126+
"open": "11.0.1",
127+
"playwright": "1.62.1",
128128
"preact": "11.0.0-beta.2",
129129
"prettier": "3.9.6",
130130
"prettier-plugin-css-order": "git+https://github.com/dmail-fork/prettier-plugin-css-order.git",

packages/backend/database-manager/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@jsenv/database": "0.0.13",
33-
"@jsenv/server": "17.6.0",
33+
"@jsenv/server": "17.6.1",
3434
"@jsenv/urls": "2.9.10",
3535
"@tanstack/table-core": "8.21.3",
3636
"jsonwebtoken": "9.0.3",
@@ -42,7 +42,7 @@
4242
"@jsenv/navi": "../../frontend/navi",
4343
"@jsenv/plugin-preact": "../../related/plugin-preact",
4444
"@jsenv/server": "../../server",
45-
"@preact/signals": "2.9.4",
45+
"@preact/signals": "2.11.1",
4646
"preact": "11.0.0-beta.2"
4747
},
4848
"publishConfig": {

packages/backend/server/dist/ws/ws.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,9 @@ function requirePermessageDeflate () {
418418
(typeof opts.serverMaxWindowBits === 'number' &&
419419
opts.serverMaxWindowBits > params.server_max_window_bits))) ||
420420
(typeof opts.clientMaxWindowBits === 'number' &&
421-
!params.client_max_window_bits)
421+
(typeof params.client_max_window_bits === 'number'
422+
? opts.clientMaxWindowBits > params.client_max_window_bits
423+
: !params.client_max_window_bits))
422424
) {
423425
return false;
424426
}

packages/backend/server/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsenv/server",
3-
"version": "17.6.0",
3+
"version": "17.6.1",
44
"type": "module",
55
"description": "A modern Node.js HTTP server with declarative routing, content negotiation, and WebSocket support",
66
"repository": {
@@ -54,11 +54,11 @@
5454
"@jsenv/url-pattern": "../../tooling/url-pattern",
5555
"@jsenv/urls": "../../tooling/urls",
5656
"@jsenv/utils": "../../tooling/utils",
57-
"eventsource": "4.1.0",
57+
"eventsource": "5.1.0",
5858
"formidable": "3.5.4",
59-
"playwright": "1.61.1",
60-
"undici": "8.8.0",
61-
"ws": "8.21.1"
59+
"playwright": "1.62.1",
60+
"undici": "8.10.0",
61+
"ws": "8.21.3"
6262
},
6363
"publishConfig": {
6464
"access": "public"

0 commit comments

Comments
 (0)