3 hours ago
next.js

v16.5.0-canary.57

Core Changes

  • Share trace-style truncation and gzip the Request Insights journal: #102018
  • Preserve agent feedback instructions during temporary telemetry opt-out: #102062
  • Rename the experimental next start front server to Switchyard: #102035

Example Changes

  • examples: inclusion criteria: #93300

Misc Changes

  • docs: clarify Turbopack task inputs and module identity: #102090
  • fix pr-auto-label config members: #102067
  • test: skip service-worker-multiple in deploy mode: #102057
  • Add @samselikoff to team members in OWNERS file: #102023
  • Document instant navigation inspection with browser cookies: #102069
  • docs: explain errors thrown inside use cache: #102064

Credits

Huge thanks to @wbinnssmith, @mischnic, @icyJoseph, @aurorascharff, @samselikoff, @kassens, and @jamiboym for helping!

5 hours ago
webpack

v5.113.0

Minor Changes

  • Treat pure CommonJS exports and require() of pure modules as side-effect free. (by @hai-x in #21937)

  • Add compilation.hooks.chunkHashDependencies for chunks naming other chunks. (by @alexander-akait in #22810)

  • Add a sourceTest condition to use items; match /g regexps reliably. (by @xiaoxiaojx in #23029)

  • Add optional SVG minification and preserve XML values and HTML style boundaries. (by @alexander-akait in #22692)

  • Allow usedExports and mangleExports with cacheUnaffected. (by @alexander-akait in #23337)

  • Add an updateManifest HMR hook so plugins add their own hot update data. (by @alexander-akait in #23008)

  • Add a transport hook to webpack.hmr.LazyCompilationPlugin, so a development server can serve the lazy compilation backend from its own server, and pass the options it settles on to a custom backend, which can bring its own client. (by @alexander-akait in #23435)

  • Restore deep import paths Module Federation loads and expose its helpers. (by @alexander-akait in #22934)

  • Load Node.js builtins in ESM output through process.getBuiltinModule(), warning where a universal target can't. (by @alexander-akait in #23162)

  • Make the MultiCompiler done hook async; its sync call is deprecated. (by @alexander-akait in #23023)

  • Add a faster JavaScript SourceProcessor and drop printer.load(). (by @alexander-akait in #22815)

  • Add parseErrors and every ecmaVersion; remove JavascriptParser.extend. (by @alexander-akait in #22881)

  • Type a <style lang> or <script lang> body as its language's files. (by @alexander-akait in #22940)

  • Scope HTML class and id with a <style module> or linked CSS module. (by @alexander-akait in #23279)

  • Let JavaScript parser hook taps read nodes through the path with path: true. (by @alexander-akait in #23234)

  • Let CSS visitors replace nodes and read value ranges, and minify CSS faster. (by @alexander-akait in #22886)

  • Drop unread call arguments and fold Object.keys and .length when minifying. (by @alexander-akait in #22871)

  • Fix delete (null ?? x), and drop unused catch bindings when minifying. (by @alexander-akait in #22878)

  • Merge branches spelling a key with and without quotes, drop the values an unread function called in place returns, write computed NaN and null keys as names, and drop new before RegExp of a BigInt when minifying. (by @aryanraj45 in #22914)

  • Fold switches, literals, trims, typeof, number members; inline more; drop unread classes, dead code, ?.. (by @alexander-akait in #22897)

  • Inline more calls, fold more, and merge imports and exports, when minifying. (by @alexander-akait in #22909)

  • Fold a value into what an await or yield hands over, and a function or object assigned to a name read once into that read, when minifying. (by @aryanraj45 in #22920)

  • Fold more values, tests and loop declarations when minifying. (by @alexander-akait in #22919)

  • Fold a pure call's value past another pure call when minifying. (by @aryanraj45 in #22927)

  • Write strings as templates when minifying where every one can be. (by @alexander-akait in #22923)

  • Minify JavaScript in one SourceProcessor run, with source maps and beautify. (by @alexander-akait in #22995)

  • Honor pure_funcs, drop_console, global_defs, top_retain, unused and inline in minify. (by @alexander-akait in #23042)

  • Honor terser's pure_getters compress option in minify. (by @aryanraj45 in #23391)

  • Add ancestor, replace and remove to HTML syntax paths and textOf to CSS. (by @alexander-akait in #23420)

  • Accept a function returning the schema, the name and data path of the errors and a check precompiled with schema-utils precompile in this.getOptions(schema, configuration, check), as compiler.validate does, and let both take the check in the configuration's place. (by @alexander-akait in #22745)

  • Accept camelCase JavaScript minify option names, keeping terser's as aliases. (by @alexander-akait in #23052)

  • Fold more calls, constants and single-use values when minifying JavaScript, and print the vars Babel writes for default parameters as ES2015 default parameters where the output may use them. (by @alexander-akait in #23198)

  • Minify calls, chains, literals, updates, dead/unused code; honor keep_fargs. (by @alexander-akait in #23209)

  • Add output.allowOutside to write, copy and clean files outside output.path. (by @alexander-akait in #23278)

  • Expose the scope analysis as webpack.javascript.syntax.scopes. (by @alexander-akait in #23296)

  • Scope HTML id references and read linked sheets that are CSS modules by rule. (by @alexander-akait in #23317)

  • Support named HTML CSS modules and a cssModules.attributes parser option. (by @alexander-akait in #23317)

  • Close SVG gaps with svgo, minify SVG spellings and whitespace by default. (by @alexander-akait in #23355)

  • Add SVG options to inline stylesheets and remove chosen elements or attributes. (by @alexander-akait in #23389)

  • Join adjacent same-direction SVG path lines in structure cleanup. (by @alexander-akait in #23400)

  • Hoist values all SVG group children share and write out exact integer exponents. (by @alexander-akait in #23412)

  • Add optimization.minimizeOptions.xml.comments to choose which SVG and XML comments survive minification. (by @alexander-akait in #23415)

  • Shorten SVG transforms that rotate about a point into one rotate(angle x y). (by @alexander-akait in #23417)

  • Add optimization.minimizeOptions.xml.convertTransforms to recompose SVG transforms as the shortest equivalent list within the precision. (by @alexander-akait in #23419)

  • Add optimization.minimizeOptions.xml.removeOffCanvasPaths to drop SVG paths wholly outside the root viewBox. (by @alexander-akait in #23422)

  • Add optimization.minimizeOptions.xml.mergeDisjointPaths to merge adjacent SVG paths whose bounds do not overlap. (by @alexander-akait in #23429)

  • Add XML applyTransforms, convertCurvesToArcs and opt-in svgo-style cleanups such as removeUnknownElements, and shrink SVG paths. (by @alexander-akait in #23443)

  • Read TypeScript in the JavaScript parser, so experiments.typescript parses once without Node.js's type stripping, and drop the experimental TypeScriptPlugin. (by @alexander-akait in #23445)

Patch Changes

  • Fix inner graph dropping initializers that reference undeclared identifiers. (by @xiaoxiaojx in #23187)

  • Always pass a dependency array to define in AMD library output. (by @alexander-akait in #23370)

  • Fix a crash reading a module's size after a filesystem cache restore. (by @alexander-akait in #23481)

  • Keep an outer <a> open when a nested <a> in a table cell closes another. (by @alexander-akait in #22881)

  • Decode HTML asset URLs, fix <base href> and remote stylesheets, apply entry html options to pages. (by @alexander-akait in #22917)

  • Fix loading WebAssembly from runtime chunks emitted in subdirectories. (by @bjohansebas in #22916)

  • Fix output.html.inline output, custom license banners included, and keep embedded code a minifier fails on. (by @alexander-akait in #22992)

  • Throw on a write to a concatenated import in sloppy mode and after SWC minifies. (by @alexander-akait in #23363)

  • Skip work for activated lazy barrels and preserve unused nested imports. (by @alexander-akait in #22930)

  • Parse CSS and HTML faster and let a SourceProcessor run nest another run. (by @alexander-akait in #23327)

  • Honor an explicit zero stage in BannerPlugin. (by @Eshiv-Pandey in #23092)

  • Preserve optional chains when renaming CommonJS export self-references. (by @bjohansebas in #22883)

  • Fix builds failing when a CommonJS module re-exports an ES module in a cycle. (by @zerotohero3 in #23090)

  • Preserve stylesheet attributes and disabled state, and drop removed chunks' styles, during hot updates. (by @bjohansebas in #22911)

  • Preserve request order when collecting asynchronous CSS on the server. (by @bjohansebas in #22913)

  • Make external module identifiers independent of resolution order. (by @bjohansebas in #22891)

  • Deduplicate identical synthetic module graph reasons. (by @bjohansebas in #23095)

  • Preserve URL objects when resolving dynamic asset requests. (by @bjohansebas in #22884)

  • Remove sourceMappingURL comments with extractSourceMap even when devtool is off. (by @alexander-akait in #23011)

  • Load each runtime's own copy of a module whose used exports differ by runtime. (by @riconnon in #23369)

  • Fix formatSize for fractional byte sizes below 1. (by @faizan1250 in #23204)

  • Fix HMR when an update needs a chunk the client has not loaded, including ES module output. (by @alexander-akait in #22971)

  • Fix new URL(…, import.meta.url) assets, workers and base URI edge cases. (by @alexander-akait in #23440)

  • Create workers from an imported call listed as fn() from module in worker. (by @alexander-akait in #23127)

  • Replace ? and # in chunk names, ids and asset names in filenames with _. (by @bjohansebas in #22885)

  • Keep MultiCompiler watching usable when a child compiler is already running. (by @alexander-akait in #23041)

  • Keep compilation.namedChunks pointing to existing chunks after chunks are merged or removed. (by @hai-x in #22954)

  • Parse CSS, HTML, XML and JavaScript faster with less memory. (by @alexander-akait in #23336)

  • Reset the chunk graph when sealing a compilation again. (by @bjohansebas in #22888)

  • Fix source map hashes for file fields and local file:/// sources. (by @alexander-akait in #22941)

  • Preserve falsy default exports from SystemJS externals. (by @alexander-akait in #23179)

  • Fix WebAssembly filenames using the full hash in universal builds or next to a digest. (by @bjohansebas in #22912)

  • Avoid unused external warnings for aliases sharing the same module. (by @bjohansebas in #22893)

  • Pick up files added in a subdirectory of a recursive context in watch mode. (by @alexander-akait in #23285)

  • Wait for async done taps before a watch rebuild invalidated during them. (by @alexander-akait in #23272)

  • Keep HMR from aborting when a change only moves modules between the chunks an import() loads. (by @alexander-akait in #22982)

  • Keep one namespace object for an ES module both imported and required. (by @alexander-akait in #23101)

  • Track called imported members and avoid repeated namespace usage analysis. (by @xiaoxiaojx in #23155)

  • Fix HMR for loading or newer-build chunks and siblings, and manifest errors. (by @alexander-akait in #22984)

  • Load the stylesheet of a new chunk joining a loaded group on HMR update. (by @alexander-akait in #22985)

  • Fix HMR cache, CSS order, rejected accepts, over-fetching and custom chunk ids. (by @alexander-akait in #22993)

  • Avoid stack overflows and repeated scans when forming concatenation groups. (by @alexander-akait in #22947)

  • Keep named chunk ids off Object.prototype keys such as toString. (by @alexander-akait in #22993)

  • Honor an empty ManifestPlugin prefix. (by @Eshiv-Pandey in #23091)

  • Hold function keys of memory caches weakly so their entries can be collected. (by @alexander-akait in #23127)

  • Count a lone CR and a CSS form feed as line breaks in CSS and HTML locations. (by @alexander-akait in #23289)

  • Declare @charset for every stylesheet asset, never for embedded CSS. (by @alexander-akait in #23323)

  • Keep strings, urls and escapes intact when minifying and rewriting CSS. (by @alexander-akait in #23300)

  • Shorten a CSS number only to digits every engine lays out at the same pixel. (by @dependabot in #23053)

  • Keep the space before an SVG data: URL the CSS minifier rewrites. (by @lazerg in #22880)

  • Fill [local] with the written name, pair grid lines, and inline @values. (by @alexander-akait in #23199)

  • Scope CSS module rules after an @layer statement or a nested bare :global. (by @alexander-akait in #23114)

  • Keep an escaped : in a CSS custom property name when dropping unused ones. (by @alexander-akait in #23038)

  • Keep defined undefined, NaN and Infinity values safe from local bindings. (by @alexander-akait in #23252)

  • Fix CSS, HTML and JavaScript parser divergences their own tests found. (by @alexander-akait in #22889)

  • Restore prefetch hints from dependent entries that share a runtime. (by @Luks3110 in #23318)

  • Keep the runtime a require.ensure callback needs when its block has no chunk. (by @hai-x in #21937)

  • Fix CSS, HTML and JavaScript tokenizer divergences from their specs. (by @alexander-akait in #22872)

  • Keep minified XML well-formed: close a cut-off CDATA, escape a bare &. (by @alexander-akait in #22850)

  • Follow CSS module composes chains of any depth. (by @alexander-akait in #23194)

  • Keep a minified HTML page's meaning around templates, noscript and encodings. (by @alexander-akait in #23349)

  • Keep every emitted file when assets are renamed or inlined. (by @alexander-akait in #23338)

  • Keep CSS, HTML and XML beautify output the same when printed again. (by @alexander-akait in #23302)

  • Minify HTML and CSS on the first pass to what a second pass would print: shorter attribute newlines, & and escape terminators, sorted rebuilt tags, joined <style> runs and settled <html> and <body> tags. (by @alexander-akait in #23147)

  • Fix ManifestPlugin crashing when output.hashDigestLength is greater than 32. (by @alexander-akait in #23086)

  • Minify CSS on the first pass to what a second pass would print: drop a declaration an empty or repeated nested rule stood beside, a lowered -moz- copy a twin covers, and the sides a box color fallback implies. (by @alexander-akait in #23167)

  • Fix if and conditional dead-code elimination picking the wrong branch when the folded test is NaN, e.g. if (0 / 0) { a } else { b } keeping a. (by @NUAAwqy in #23104)

  • Minify CSS on the first pass to what a second pass would print: take back a prefix copy a later twin writes again, close a custom property a lone backslash ended, join or drop nested rules a repeat or an empty prelude left apart, and settle the group rules a join or a gathered layer leaves side by side. (by @alexander-akait in #23172)

  • Stop the parser printing errors for BigInt operations that throw at runtime. (by @alexander-akait in #23113)

  • Keep a CSS none that parts a background or mask position, which revived it. (by @dependabot in #23449)

  • Keep an oklch() relative color reading a near-neutral origin's hue unminified. (by @dependabot in #23263)

  • Track ESM build dependencies faster and drop es-module-lexer. (by @alexander-akait in #23430)

  • Minify the styles of a stylesheet's SVG data: URL and quote it alike per pass. (by @alexander-akait in #23368)

  • Keep a parenthesized string opening an arrow body from printing as a directive. (by @dependabot in #23265)

  • Fix CSS, HTML and JavaScript minifier output bugs found by coverage and sweeps. (by @alexander-akait in #22903)

  • Update the CSS minifier's browser support data to @mdn/browser-compat-data 8.1.9. (by @dependabot in #23266)

  • Write new (0, a.b) as new a.b, keep a ? !1 : (b = 1) where !a && (b = 1) is longer, and end a function with if (a) return a for return a || void 0 when minifying. (by @aryanraj45 in #22955)

  • Fold conditionals, returns and values further in the one-pass JavaScript minifier. (by @alexander-akait in #22949)

  • Drop unread let writes from closures created after the declaration. (by @aryanraj45 in #22960)

  • Minify statements as sequences; fold known switch, spread, unary, unset vars. (by @alexander-akait in #23071)

  • Drop more unread #__PURE__ and #__NO_SIDE_EFFECTS__ calls when minifying. (by @aryanraj45 in #23057)

  • Inline simple calls and calls of functions returning constants when minifying. (by @alexander-akait in #22956)

  • Speed up HMR rebuilds and shrink the HMR runtime. (by @alexander-akait in #23000)

  • Keep generated JavaScript valid around replacements, branches and templates. (by @alexander-akait in #23308)

  • Inline one-use calls in literals and fold let reads after their declaration. (by @aryanraj45 in #22987)

  • Merge equal exits and shared assignments in the one-pass JavaScript minifier. (by @alexander-akait in #22957)

  • Fix require.main in one-module bundles and a hoisted top-level var exports. (by @hai-x in #21937)

  • Emit shorter runtime code for chunk loading, CSS, interop and module federation. (by @alexander-akait in #22921)

  • Keep every tag of a conditional comment's body when minifying it. (by @alexander-akait in #22936)

  • Fix !!!x and writes arguments reads in the one-pass JavaScript minifier. (by @alexander-akait in #22958)

  • Give back as written an event handler the JavaScript minifier prints as nothing. (by @alexander-akait in #22940)

  • Inline single-use functions, literals and string joins, and print once, in the one-pass minifier. (by @alexander-akait in #22969)

  • Fold the var guard TypeScript writes for an enum when minifying. (by @aryanraj45 in #23001)

  • Drop unused RegExps and split long string arrays in the one-pass minifier. (by @alexander-akait in #22990)

  • Compress JavaScript smaller and correctly in one pass, with or without mangling. (by @alexander-akait in #23014)

  • Move an assignment into its call past names its new functions redeclare. (by @aryanraj45 in #23013)

  • Print a number constant where a member reads it when minifying, as terser does. (by @aryanraj45 in #23395)

  • Fold values into spreads and logical sides; print number members correctly. (by @aryanraj45 in #23441)

  • Pass the default minifiers as functions so cold builds stay fast. (by @alexander-akait in #23056)

  • Speed up externals matching, including the built-in modules of node targets. (by @alexander-akait in #22933)

  • Open the ProfilingPlugin profiler's session on the inspector it is given. (by @alexander-akait in #22953)

  • Speed up the JavaScript minifier, which now reads its tree through the path. (by @alexander-akait in #23225)

  • Keep a strict ES module importer's interop for lazily compiled modules. (by @alexander-akait in #23049)

  • Write into the JavaScript syntax tree faster and hold less memory in it. (by @alexander-akait in #23233)

  • Walk JavaScript modules on the syntax tree, holding less memory while parsing. (by @alexander-akait in #23251)

  • Speed up CSS, HTML, XML and JavaScript parsing, printing and minifying, and allocate less while parsing. (by @alexander-akait in #23310)

  • Map JavaScript offsets to lines and columns faster, holding less memory. (by @alexander-akait in #23293)

  • Build ESTree objects only with toEstreeObject and fromEstreeObject. (by @alexander-akait in #23345)

  • Stop cacheUnaffected rebuilds from reusing or keeping stale chunk graphs. (by @alexander-akait in #23320)

  • Speed up the JavaScript parser walk and scope analysis, and hold less memory. (by @alexander-akait in #23335)

  • Fix the types of replaceDuplicates' comparator and the terminal color functions. (by @alexander-akait in #23047)

  • Type memo cache callbacks by the cache keys they are given. (by @alexander-akait in #23054)

  • Type the serializer contexts and the minifiers' input source maps. (by @alexander-akait in #23059)

  • Skip a loader that resolveLoader.alias maps to false instead of crashing. (by @alexander-akait in #23066)

  • Invalidate module memo caches on dependency misses or runtime activity changes. (by @alexander-akait in #23069)

  • Stop an id="importScripts" element from changing the automatic public path. (by @avivkeller in c08d56f)

  • Start the bundle even when a page element has the chunk loading global as id. (by @avivkeller in bc8c2be)

  • Stop the HTML minifier and generator from turning escaped text into markup. (by @alexander-akait in #23148)

  • Listen on localhost and ignore unknown keys in the lazy compilation backend. (by @alexander-akait in #23411)

  • Load a script external even when a page element has its global name. (by @avivkeller in f6366b0)

  • Fix generated code around semicolons, await, replacements and file names. (by @alexander-akait in #23149)

  • Keep ESM namespace keys sorted when mixing const and getter exports. (by @xiaoxiaojx in #23186)

  • Detect the public path, script externals and Trusted Types more reliably. (by @alexander-akait in #23145)

  • Omit names ambiguous in a nested or cyclic export * from namespace objects. (by @alexander-akait in #23331)

  • Let plugins type their build info, stats fields, code generation data and tags. (by @alexander-akait in #22999)

  • Type memo cache entries by key and fix published type signatures. (by @alexander-akait in #23016)

  • Call back with the cached value on a hit in both cache facade provide methods. (by @alexander-akait in #23032)

  • Require minimizer-webpack-plugin 5.14 for exact source map columns. (by @alexander-akait in #23022)

  • Keep comments in returns, empty classes, CSS signs; fix mangling, typeof(), CSS *&. (by @alexander-akait in #23037)

  • Print shorter minified JavaScript in more of the cases terser shortens. (by @alexander-akait in #23058)

  • Fix minified output around eval, with, early calls and moved functions. (by @alexander-akait in #23070)

  • Drop unread trailing arguments and write compound assignments when minifying. (by @alexander-akait in #23075)

  • Type more cache serializers by position instead of with any. (by @alexander-akait in #23072)

  • Minify more switches, console chains, labels, global deletes and -0. (by @aryanraj45 in #23130)

  • Drop unused labels and loops that only break, and fold typeof undefined. (by @aryanraj45 in #23131)

  • Replace TypeScript error suppressions with real types. (by @alexander-akait in #23078)

  • Minify unread catch bindings, bare blocks, a?a:b and one-case switch. (by @alexander-akait in #23087)

  • Minify more conditionals, loop exits, dead code and unread values in one pass. (by @alexander-akait in #23099)

  • Accept fs typed by @types/node 26 in the input file system types. (by @alexander-akait in #23100)

  • Evaluate built-in calls on constants when minifying JavaScript. (by @alexander-akait in #23110)

  • Type rule effect values and let Profiler run without an inspector. (by @alexander-akait in #23102)

  • Type serializer contexts, lazy values and internal helpers without any. (by @alexander-akait in #23111)

  • Drop pure built-in calls and keep 0 tests boolean when minifying JavaScript. (by @alexander-akait in #23116)

  • Type the CSS hot update manifest, profiler traces and stats hooks without any. (by @alexander-akait in #23115)

  • Fix four CSS minifier outputs that changed what a stylesheet says. (by @alexander-akait in #23121)

  • Fold arrays, BigInt literals and empty strings added to strings when minifying. (by @alexander-akait in #23128)

  • Write a prefixed CSS rule's nested rules and scheme toggles under each copy. (by @alexander-akait in #23129)

  • Fold conversions, and assume built-ins of the ecma the minifier writes. (by @alexander-akait in #23133)

  • Drop more unread and dead code, and print shorter conditions when minifying. (by @alexander-akait in #23142)

  • Keep remote URLs in HTML as written instead of replacing them with data:,. (by @alexander-akait in #23168)

  • Type output.html.manifest objects and the resolve.unsafeCache map. (by @alexander-akait in #23146)

  • Minify JavaScript built-in calls and comparisons to shorter equivalent forms. (by @alexander-akait in #23137)

  • Report no result from runWithDependencies instead of nested empty arrays. (by @alexander-akait in #23150)

  • Declare the binary field on NormalModule generator options. (by @alexander-akait in #23157)

  • Handle bad package.json values and deep JSON, and keep builds fast on odd input. (by @alexander-akait in #23151)

  • Minify JavaScript dead branches, conditions, NaN, string indexes, holes and braces shorter. (by @alexander-akait in #23152)

  • Keep names in generated comments and URLs from being read as code or loaders. (by @alexander-akait in #23153)

  • futureDefaults skips assets outside output.path; copies map # to _. (by @alexander-akait in #23158)

  • Read the binary generator option for asset modules only. (by @alexander-akait in #23159)

  • Fold spread reads, new callees, tail calls, undefined in arithmetic and string reads past the end, and inline more unread calls, when minifying JavaScript. (by @alexander-akait in #23178)

  • Follow namespace re-export chains to the end, so builds match on every run. (by @alexander-akait in #23161)

  • Merge the calls and tests of if branches when minifying JavaScript. (by @aryanraj45 in #23202)

  • Keep scripts decoded as UTF-8, and run inline loaders in HTML URLs again. (by @alexander-akait in #23170)

  • The XML minifier now minifies a <style> sheet that a dropped comment splits on the first pass, and reports each node an internal-subset entity expands to at its own reference. (by @alexander-akait in #23177)

  • Keep minified and built HTML and CSS reading as their source: attributes, script and style bodies, escapes, url() strings, @charset and values left open at the end of the input are kept, and a file imported with { type: "css" } is parsed as CSS. (by @alexander-akait in #23180)

  • Preserve -0, undefined and NaN when inlining exported constants. (by @xiaoxiaojx in #23185)

  • Print JavaScript minified in one pass as a second pass would reprint it. (by @alexander-akait in #23201)

  • Update watchpack so an invalid sideEffects glob no longer fails the build. (by @alexander-akait in #23192)

  • Escape names and keys in generated code and output, and bound dotenv expansion. (by @alexander-akait in #23200)

  • Drop frame, basefont, bgsound end tags; keep </html> after a frameset. (by @alexander-akait in #23207)

  • Fold more string and >>> operands when minifying JavaScript. (by @aryanraj45 in #23227)

  • Report an unknown regexp property name to parseError instead of throwing. (by @alexander-akait in #23217)

  • Deprecate requiring cached classes by request; use registerLoader() instead. (by @alexander-akait in #23208)

  • Escape % in chunk URLs so a chunk file whose name holds % loads. (by @alexander-akait in #23211)

  • Delete only pack files in cache cleanup and store packs restored in part. (by @alexander-akait in #23216)

  • Keep output.clean inside output.path, off dot-files and out of the project. (by @alexander-akait in #23219)

  • Speed up reads through the CSS and HTML syntax path. (by @alexander-akait in #23226)

  • Allow module.generator.asset options with asset/inline and asset/resource. (by @alexander-akait in #23286)

  • Resolve imported CSS @value URLs where defined and update importers on change. (by @alexander-akait in #23240)

  • Keep marker-like text as data and preserve URLs written into HTML attributes. (by @alexander-akait in #23232)

  • Drop nomodule scripts with module syntax from pages built with output.module. (by @alexander-akait in #23288)

  • Speed up the JavaScript minifier's scope analysis by reading through the path. (by @alexander-akait in #23231)

  • Quote non-finite numbers in compileBooleanMatcher so "NaN" evaluates as expected. (by @Pcmhacker-piro in #23254)

  • Drop new before RegExp on a binary pattern; add compress.pristineGlobals. (by @aryanraj45 in #23244)

  • Fold a template substitution reading the global undefined into its name. (by @aryanraj45 in #23244)

  • Analyze concatenated modules' scopes while parsing, without ESTree. (by @alexander-akait in #23235)

  • Fix HttpUriPlugin allowedUris handling of global regexps and URLs with credentials. (by @alexander-akait in #23269)

  • Fix IgnorePlugin skipping every other match of a global regexp. (by @alexander-akait in #23268)

  • Drop a ++ or -- of an unread name holding a primitive when minifying JavaScript. (by @aryanraj45 in #23262)

  • Call evaluateDefinedIdentifier taps with the defined identifier's name. (by @alexander-akait in #23273)

  • Read the initializer of a sloppy for (var a = b in c) in scope analysis. (by @alexander-akait in #23287)

  • Mark the syntax APIs and the parser's path taps as experimental. (by @alexander-akait in #23298)

  • Add lookup to the syntax print context; get now always returns a string. (by @alexander-akait in #23304)

  • Fix deep empty HTML, [x]& CSS, unbound calls and spaced template joins. (by @alexander-akait in #23325)

  • Type hook interceptor call and loop arguments by updating tapable to 2.3.4. (by @alexander-akait in #23319)

  • Minify long CSS values faster and print a reduced call used as a template tag correctly. (by @alexander-akait in #23351)

  • Minify repeated CSS faster and print a folded template tag in one pass. (by @alexander-akait in #23359)

  • Write SVG path data relative where every engine reads the same points. (by @alexander-akait in #23348)

  • Type code generation data by its declared keys, without an any fallback. (by @alexander-akait in #23350)

  • Scope the fragment of an HTML link to the page's own file with its CSS modules. (by @alexander-akait in #23354)

  • Type render manifest filename templates and amd options without any. (by @alexander-akait in #23352)

  • Minify a script charset and template tags in one pass, @layer runs faster. (by @alexander-akait in #23371)

  • Keep chunk loading, runtimes and worker entries correct in edge cases. (by @alexander-akait in #23365)

  • Keep an emptied SVG <style> and moved group values stable on a second minify. (by @alexander-akait in #23361)

  • Type parser and generator factory options by their module types. (by @alexander-akait in #23367)

  • Keep an HTML page's injected tags, CSP and text imports where they apply. (by @alexander-akait in #23364)

  • Keep exports and keys named like Object.prototype members as own properties. (by @alexander-akait in #23366)

  • Bound build-time folding and globs, and fix crashes in errors, stats and wasm. (by @alexander-akait in #23373)

  • Minify nested @layer runs in linear time and print more JS and HTML in one pass. (by @alexander-akait in #23377)

  • Warn instead of failing on magic comment values that evaluate to a symbol. (by @alexander-akait in #23375)

  • Keep module evaluation order and side effects when concatenating modules. (by @alexander-akait in #23379)

  • Remove unused experimental exports from the CSS, HTML and JavaScript syntax APIs. (by @alexander-akait in #23384)

  • Type SyntaxTree node writers by the node type they write. (by @alexander-akait in #23385)

  • Preserve CSS import layers and media syntax, and keep urls out of externals. (by @alexander-akait in #23387)

  • Type a syntax processor's visitor state as undefined unless it states one. (by @alexander-akait in #23392)

  • Keep legal comments (<!--!, @license, @preserve) when minifying XML. (by @alexander-akait in #23394)

  • Start a relative chunk url with ./ when its name reads like a url scheme. (by @alexander-akait in #23396)

  • Fold more JavaScript minify cases in one pass. (by @alexander-akait in #23416)

  • Keep context requests and copy globs to what the config names. (by @alexander-akait in #23405)

  • Print shorter minified JavaScript in one pass in more cases terser shortens. (by @alexander-akait in #23459)

  • Keep typed JSON imports apart, and let HMR accept and decline take attributes. (by @alexander-akait in #23436)

  • Keep a comma expression request and <!-- operators read by a custom parse. (by @alexander-akait in #23460)

  • Finish a later run of a compiler that has ProfilingPlugin instead of hanging. (by @alexander-akait in #23465)

  • Keep an HTML page in another encoding than UTF-8 in its own encoding. (by @alexander-akait in #23466)

  • Name a nested anonymous @import layer, and follow the output hash options. (by @alexander-akait in #23478)

  • Speed up JavaScript minification by keeping the syntax walk's state on one object. (by @alexander-akait in #23421)

  • Type a DefinePlugin function value as a function or class. (by @alexander-akait in #23446)

  • Escape line terminators in compileBooleanMatcher regular expressions. (by @Pcmhacker-piro in #23340)

  • Load externals, context module, import.meta.glob, import defer and stats code only when a build uses it, so small builds start faster. (by @alexander-akait in #23408)

5 hours ago
electron

electron v46.0.0-alpha.12

Note: This is an alpha release. Please file new issues for any bugs you find in it.

This release is published to npm under the alpha tag and can be installed via npm install electron@alpha, or npm install electron@46.0.0-alpha.12.

Release Notes for v46.0.0-alpha.12

Features

  • Added preferredDisplaySurface to the request object passed to the session.setDisplayMediaRequestHandler handler. #55855

Fixes

  • Fixed a dangling pointer after picking a webkitdirectory folder. #55927 (Also in 44, 45)
  • Fixed macOS default menu item icons and titles being lost on menu refresh. #55877 (Also in 44, 45)
  • Fixed request header removals in webRequest.onBeforeSendHeaders redirects. #55924 (Also in 44, 45)
  • Fixed webContents.centerSelection() so that it works on Windows and Linux. #55916 (Also in 45)

Other Changes

  • Changed useSystemPicker on macOS to honor displaySurface, offering windows, apps and screens when unset, and to include system audio when requested. #55856
  • Updated Chromium to 160.0.8168.0. #55957
5 hours ago
scalar

Release 2026-11-19

Releases

@scalar/api-client@3.28.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.
  • #9778: Add a date and time picker for request fields with format: date, date-time, or time. A calendar/clock icon opens an accessible picker (built on radix-vue's Calendar) that writes a correctly formatted value back into the field. For date-time fields, the picker also offers shortcuts to insert faker variables like {{$isoTimestamp}} and {{$randomDateFuture}}. Free-text entry and {{variables}} keep working, so you can still type invalid data on purpose.

@scalar/api-reference@1.82.0

Minor Changes

  • #11020: feat: show x-badges in the sidebar with the new showBadgesInSidebar option

    The option is off by default, so the sidebar looks the same as before. When it is on, the sidebar shows the x-badges of operations, webhooks, tags (including nested OpenAPI 3.2 tags), x-tagGroups entries and models next to their titles. Navigation entries of these types get an optional badges field.

Patch Changes

  • #11123: Fix the API reference freezing on schemas with several recursive or cross-referencing $refs. Generated examples that are too large to render at full depth are now rendered at the deepest depth that fits.

  • #11113: Load native AsyncAPI RAML and Protobuf dependencies when their message or model is expanded, sharing authenticated downloads until the document changes and preserving source fallback and prebuilt server resources.

    Use the containing document location for deferred dependencies and prevent remote schemas from invoking a filesystem loader.

  • #11124: Render Markdown through @scalar/markdown instead of @scalar/code-highlight

    None of them pull in lowlight or highlight.js any more: code blocks in descriptions are highlighted by @scalar/highlight, the same highlighter ScalarCodeBlock uses. A fenced code block without a language is no longer auto-detected and renders as plain text. In @scalar/openapi-to-markdown this shows up in descriptions that contain HTML or alerts: an unlabeled fence used to come out labeled with highlight.js's guess (often wrong, such as properties for JSON), and now stays unlabeled.

  • #10854: Send the selected API source and version as structured chat request metadata, keeping user messages unchanged.

@scalar/blocks@0.8.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11123: Fix the API reference freezing on schemas with several recursive or cross-referencing $refs. Generated examples that are too large to render at full depth are now rendered at the deepest depth that fits.

@scalar/helpers@0.19.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

@scalar/highlight@0.7.0

Minor Changes

  • #11124: Ship the hljs-* stylesheet as @scalar/highlight/compat/code.css

    This is the code.css that @scalar/code-highlight ships, unchanged, moved next to the compat layer whose classes it styles. Import @scalar/highlight/compat/code.css instead of @scalar/code-highlight/css/code.css.

    Scalar's own packages no longer use @scalar/code-highlight. Its code half has a replacement in @scalar/highlight/compat and its Markdown half in @scalar/markdown.

@scalar/markdown@0.1.0

Minor Changes

  • #11124: Add @scalar/markdown, a replacement for the Markdown half of @scalar/code-highlight

    htmlFromMarkdown, getHeadings, splitContent, isHeading, textFromNode and rehypeAlert move here unchanged in name and signature. rehypeHighlight keeps its name and its className option; the options that configured lowlight (lowlight, languages, aliases, subset, plainText, prefix and detect) have no equivalent. Code blocks are now highlighted by @scalar/highlight rather than lowlight, with the same hljs and hljs-* classes, so code.css keeps styling them.

    One behaviour changes: a fenced code block without a language is no longer auto-detected. highlight.js guessed a language for it, often wrongly. Now it renders as plain text, keeping the hljs class so it still looks like every other code block.

  • #11124: Share one copy of the Markdown parser stack

    @scalar/markdown adds parseMarkdown, mdastFromHtml and createMarkdownSerializer. @scalar/openapi-to-markdown and @scalar/asyncapi-to-markdown use them instead of importing unified, remark-* and rehype-* themselves. @scalar/markdown bundles that stack, so a bundle that included both used to carry two copies of parse5, micromark and the mdast/hast utilities; the API Reference standalone build is about 330 KB smaller, 99 KB gzipped. Sharing the stack does not change the Markdown either package produces.

@scalar/schemas@0.19.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

  • #11020: feat: show x-badges in the sidebar with the new showBadgesInSidebar option

    The option is off by default, so the sidebar looks the same as before. When it is on, the sidebar shows the x-badges of operations, webhooks, tags (including nested OpenAPI 3.2 tags), x-tagGroups entries and models next to their titles. Navigation entries of these types get an optional badges field.

@scalar/sidebar@0.13.0

Minor Changes

  • #11020: feat: show x-badges in the sidebar with the new showBadgesInSidebar option

    The option is off by default, so the sidebar looks the same as before. When it is on, the sidebar shows the x-badges of operations, webhooks, tags (including nested OpenAPI 3.2 tags), x-tagGroups entries and models next to their titles. Navigation entries of these types get an optional badges field.

@scalar/types@0.31.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

  • #11020: feat: show x-badges in the sidebar with the new showBadgesInSidebar option

    The option is off by default, so the sidebar looks the same as before. When it is on, the sidebar shows the x-badges of operations, webhooks, tags (including nested OpenAPI 3.2 tags), x-tagGroups entries and models next to their titles. Navigation entries of these types get an optional badges field.

Patch Changes

  • #9778: Add API Client date picker translation keys for locale overrides.

@scalar/workspace-store@0.75.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

  • #11020: feat: show x-badges in the sidebar with the new showBadgesInSidebar option

    The option is off by default, so the sidebar looks the same as before. When it is on, the sidebar shows the x-badges of operations, webhooks, tags (including nested OpenAPI 3.2 tags), x-tagGroups entries and models next to their titles. Navigation entries of these types get an optional badges field.

Patch Changes

  • #11123: Fix the API reference freezing on schemas with several recursive or cross-referencing $refs. Generated examples that are too large to render at full depth are now rendered at the deepest depth that fits.

  • #11115: Fix examples for a oneOf or anyOf variant that is a nullable object or array, which came out as null instead of the object or array.

  • #11113: Load native AsyncAPI RAML and Protobuf dependencies when their message or model is expanded, sharing authenticated downloads until the document changes and preserving source fallback and prebuilt server resources.

    Use the containing document location for deferred dependencies and prevent remote schemas from invoking a filesystem loader.

@scalar/agent-chat@0.12.56

Patch Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.
  • #10854: Send the selected API source and version as structured chat request metadata, keeping user messages unchanged.

@scalar/asyncapi-to-markdown@0.2.12

Patch Changes

  • #11124: Share one copy of the Markdown parser stack

    @scalar/markdown adds parseMarkdown, mdastFromHtml and createMarkdownSerializer. @scalar/openapi-to-markdown and @scalar/asyncapi-to-markdown use them instead of importing unified, remark-* and rehype-* themselves. @scalar/markdown bundles that stack, so a bundle that included both used to carry two copies of parse5, micromark and the mdast/hast utilities; the API Reference standalone build is about 330 KB smaller, 99 KB gzipped. Sharing the stack does not change the Markdown either package produces.

@scalar/components@0.35.3

Patch Changes

  • #11124: Render Markdown through @scalar/markdown instead of @scalar/code-highlight

    None of them pull in lowlight or highlight.js any more: code blocks in descriptions are highlighted by @scalar/highlight, the same highlighter ScalarCodeBlock uses. A fenced code block without a language is no longer auto-detected and renders as plain text. In @scalar/openapi-to-markdown this shows up in descriptions that contain HTML or alerts: an unlabeled fence used to come out labeled with highlight.js's guess (often wrong, such as properties for JSON), and now stays unlabeled.

  • #11112: Render legacy ScalarIcon stroke-width styles during server-side rendering to avoid hydration mismatches in Vue and Nuxt applications.

@scalar/mock-server@0.21.6

Patch Changes

  • #11105: Finish migrating legacy nullable schema keywords when upgrading OpenAPI 3.0 descriptions, so downstream request validators can compile the upgraded schemas and enforce the rest of the request contract.

@scalar/openapi-to-markdown@1.7.10

Patch Changes

  • #11124: Render Markdown through @scalar/markdown instead of @scalar/code-highlight

    None of them pull in lowlight or highlight.js any more: code blocks in descriptions are highlighted by @scalar/highlight, the same highlighter ScalarCodeBlock uses. A fenced code block without a language is no longer auto-detected and renders as plain text. In @scalar/openapi-to-markdown this shows up in descriptions that contain HTML or alerts: an unlabeled fence used to come out labeled with highlight.js's guess (often wrong, such as properties for JSON), and now stays unlabeled.

  • #11124: Share one copy of the Markdown parser stack

    @scalar/markdown adds parseMarkdown, mdastFromHtml and createMarkdownSerializer. @scalar/openapi-to-markdown and @scalar/asyncapi-to-markdown use them instead of importing unified, remark-* and rehype-* themselves. @scalar/markdown bundles that stack, so a bundle that included both used to carry two copies of parse5, micromark and the mdast/hast utilities; the API Reference standalone build is about 330 KB smaller, 99 KB gzipped. Sharing the stack does not change the Markdown either package produces.

@scalar/openapi-upgrader@0.5.1

Patch Changes

  • #11105: Finish migrating legacy nullable schema keywords when upgrading OpenAPI 3.0 descriptions, so downstream request validators can compile the upgraded schemas and enforce the rest of the request contract.

@scalar/postman-to-openapi@0.7.35

Patch Changes

  • #11125: Fix Postman imports that use structured descriptions on query parameters.

@scalar/astro@0.4.40

No changes in this release.

@scalar/docusaurus@0.8.62

No changes in this release.

@scalar/express-api-reference@0.10.40

No changes in this release.

@scalar/fastify-api-reference@1.82.0

No changes in this release.

@scalar/hono-api-reference@0.12.23

No changes in this release.

@scalar/nestjs-api-reference@1.2.40

No changes in this release.

@scalar/nextjs-api-reference@0.12.21

No changes in this release.

@scalar/nuxt@0.6.94

No changes in this release.

@scalar/starlight@0.2.25

No changes in this release.

@scalar/sveltekit@0.3.40

No changes in this release.

@scalar/api-client-react@2.0.70

No changes in this release.

@scalar/api-reference-react@0.9.94

No changes in this release.

@scalar/asyncapi-upgrader@0.1.23

No changes in this release.

@scalar/asyncapi-validator@0.1.24

No changes in this release.

@scalar/client-side-rendering@0.4.22

No changes in this release.

@scalar/core@0.5.54

No changes in this release.

@scalar/import@0.5.39

No changes in this release.

@scalar/json-magic@0.21.1

No changes in this release.

@scalar/json-schema-validator@0.1.23

No changes in this release.

@scalar/localization@0.2.15

No changes in this release.

@scalar/mermaid-plugin@0.1.11

No changes in this release.

@scalar/nextjs-openapi@0.3.61

No changes in this release.

@scalar/oas-utils@0.20.25

No changes in this release.

@scalar/object-utils@1.3.38

No changes in this release.

@scalar/openapi-parser@0.29.26

No changes in this release.

@scalar/openapi-validator@0.1.24

No changes in this release.

@scalar/pre-post-request-scripts@0.4.68

No changes in this release.

@scalar/release-notes@0.3.4

No changes in this release.

@scalar/server-side-rendering@0.1.73

No changes in this release.

@scalar/snippetz@0.10.21

No changes in this release.

@scalar/use-hooks@0.4.29

No changes in this release.

@scalar/void-server@2.5.26

No changes in this release.

@scalar/aspire@1.1.0

Bundled API Reference

  • @scalar/api-reference@1.82.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

@scalar/aspnetcore@3.1.0

Bundled API Reference

  • @scalar/api-reference@1.82.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

@scalar/aws-lambda@1.1.0

Bundled API Reference

  • @scalar/api-reference@1.82.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

@scalar/azure-functions@1.1.0

Bundled API Reference

  • @scalar/api-reference@1.82.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

@scalar/dotnet-shared@1.1.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

@scalar/java-integration@0.9.0

Bundled API Reference

  • @scalar/api-reference@1.82.0

Minor Changes

  • #11103: Support x-scalar-token-prefix on header API keys. Generated code examples and outgoing requests add the configured prefix while stored credentials remain unchanged.

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

scalar-ninja@0.4.1

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

scalar-fastapi@1.10.1

Patch Changes

  • #11143: Expose the showBadgesInSidebar option in Java, FastAPI, Django Ninja, and .NET integrations so applications can enable sidebar badges. Badges remain hidden by default.

galaxy-scalar-com@0.2.31

Patch Changes

  • #9778: Initialize Galaxy mock servers on the first request to keep Cloudflare Worker startup within its CPU limit.

scalar-app@1.1.53

Patch Changes

  • #11153: Invite API client users to the API Hosting beta with a one-time popup as the app starts. Sign-ups join the same waitlist as the other Hosting sign-ups and set the contact's client property.

@scalarapi/docker-api-reference@0.6.28

Bundled API Reference

  • @scalar/api-reference@1.82.0

No changes in this release.

scalar_api_reference@0.2.28

Bundled API Reference

  • @scalar/api-reference@1.82.0

No changes in this release.

@scalar/mock-server-docker@0.2.83

No changes in this release.

8 hours ago
blueprint

@blueprintjs/labs@6.4.11

No documented user-facing changes

Full Changelog: @blueprintjs/labs@6.4.10...@blueprintjs/labs@6.4.11

8 hours ago
blueprint
8 hours ago
blueprint
8 hours ago
blueprint
8 hours ago
blueprint

@blueprintjs/table@6.3.4

No documented user-facing changes

Full Changelog: @blueprintjs/table@6.3.3...@blueprintjs/table@6.3.4

8 hours ago
blueprint