Selected changesmerged Nov 30, 2026
Tighten autoload.js origin checks and cookie handlingPython · 111 + / 58 −
Introduces 6 new declarations in panel/io/server.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
panel/io/server.py ↗ · 7 files
@@ -673,43 +673,76 @@ def token_payload_for_request(app: t.Any, request: t.Any) -> TokenPayload: return payload -_CREDENTIAL_HEADERS = ('authorization', 'cookie', 'proxy-authorization')--# Authenticating proxies, e.g. oauth2-proxy, forward the user identity and-# tokens in headers with these prefixes, next to the X-Forwarded headers-# describing the original request, which are kept.-_CREDENTIAL_HEADER_PREFIXES = ('x-forwarded-', 'x-auth-request-')-_ROUTING_HEADERS = (- 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-port',- 'x-forwarded-prefix', 'x-forwarded-proto', 'x-forwarded-scheme',- 'x-forwarded-server',+# The headers kept in the session token of a request whose origin may not+# receive credentials. Proxies and gateways forward identities and tokens+# under many names, so anything not known to be harmless is dropped.+_PUBLIC_HEADERS = (+ 'accept', 'accept-encoding', 'accept-language', 'cache-control',+ 'connection', 'dnt', 'forwarded', 'host', 'origin', 'pragma', 'referer',+ 'upgrade-insecure-requests', 'user-agent', 'x-forwarded-for',+ 'x-forwarded-host', 'x-forwarded-port', 'x-forwarded-prefix',+ 'x-forwarded-proto', 'x-forwarded-scheme', 'x-forwarded-server',+ 'x-real-ip', 'x-script-name', )+_PUBLIC_HEADER_PREFIXES = ('sec-ch-', 'sec-fetch-') +_DEFAULT_PORTS = (':80', ':443') -def _is_credential_header(name: str) -> bool:++def _is_public_header(name: str) -> bool: name = name.lower()- return name in _CREDENTIAL_HEADERS or (
[Flight] Factor the client's row and element building out of the parserJavaScript · 299 + / 127 −
Introduces 12 new declarations in packages/react-client/src/ReactFlightClient.js.
Adds new language design rather than adjusting what was there. Read the linked PR for the surrounding test context.
packages/react-client/src/ReactFlightClient.js ↗ · 1 files
@@ -1207,107 +1209,129 @@ function initializeModelChunk<T>(chunk: ResolvedModelChunk<T>): void { // TODO: The chunk might have transitioned to ERRORED now. // Should we return early if that happens? }+ return cyclicChunk;+} - try {- const value: T = parseModel(response, resolvedModel);- const handler = initializingHandler;- if (handler !== null) {- if (handler.errored) {- // The handler errored during the parse, so `cyclicChunk` errors with- // the same reason. `triggerErrorOnChunk` also rejects the references- // that nested parses queued on `cyclicChunk` during the parse. No value- // will arrive for them. `initializeDebugChunk` can have errored- // `cyclicChunk` before the parse. That error stays.- if ((cyclicChunk as any).status === BLOCKED) {- triggerErrorOnChunk(response, cyclicChunk, handler.reason);- }- return;+// Completes a chunk once its model's value exists. The chunk is initialized now,+// or stays BLOCKED until the references the value is waiting on resolve, or+// errors if the value's handler errored.+function completeChunkInitialization<T>(+ response: Response,+ cyclicChunk: BlockedChunk<T>,+ value: T,+): void {+ const handler = initializingHandler;+ if (handler !== null) {+ if (handler.errored) {+ // The handler errored during the parse, so `cyclicChunk` errors with+ // the same reason. `triggerErrorOnChunk` also rejects the references
Make tarred noise/RIR augmentation and Lhotse noise mixing resume exactlyPython · 918 + / 167 −
Introduces 57 new declarations in nemo/collections/asr/parts/preprocessing/perturb.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
nemo/collections/asr/parts/preprocessing/perturb.py ↗ · 35 files
@@ -1301,6 +1414,115 @@ class CustomPerturbation(perturb.Perturbation): return augmenter +class _TarredAudioRandomAccess:+ """+ Random access to the audio files of tarred noise or RIR data (NeMo tarred format: one member per audio file),+ keyed by the manifest entry's file id.++ Perturbations use it instead of the sequential tar iterator when a generator is injected (see+ :attr:`Perturbation.rng`): the file is chosen by index with that generator, so the choice is reproduced exactly+ after resuming from the generator's saved state. Members are read with NeMo's indexed tar reader. A tar without+ a ``.idx`` file next to it is indexed once into a cached temporary file (local tars only; build indexes for+ remote tars with ``scripts/dataloading/build_indexes.py``).++ One instance serves one source: one manifest and its tar files. :meth:`entries` checks the manifest against+ the tar members once, so that an entry missing from the tars raises ``ValueError`` on first use rather than+ when it happens to be drawn. File ids must be unique within the tar files of one instance: every regular member+ of every indexed range is checked, and a duplicate member name or file id raises ``ValueError``. Compressed+ archives (e.g. ``.tar.gz``) can't be read by random access and raise ``ValueError``; use uncompressed tars for+ resumable augmentation. Readers are closed after each use, so the number of tar files is not limited by the+ open-file limit.++ Args:+ tar_filepaths: Tar file paths of one source, in any format accepted by ``AugmentationDataset``+ (brace-expandable string or list).+ """++ def __init__(self, tar_filepaths: Union[str, List[str]]):+ self._tar_filepaths = tar_filepaths+ self._locations = None+ self._entries = None++ @property
Avoid missing Debug impl warning for targets without atomicsRust · 9 + / 1 −
Reworks 10 lines of existing logic in library/core/src/sync/atomic.rs.
Changes how existing language design behaves. Read the linked PR for the surrounding test context.
library/core/src/sync/atomic.rs ↗ · 1 files
@@ -254,22 +254,26 @@ use crate::{fmt, intrinsics}; reason = "implementation detail which may disappear or be replaced at any time", issue = "none" )]-#[expect(missing_debug_implementations)] mod private { #[cfg(target_has_atomic_load_store = "8")] #[repr(C, align(1))]+ #[expect(missing_debug_implementations)] pub struct Align1<T>(T); #[cfg(target_has_atomic_load_store = "16")] #[repr(C, align(2))]+ #[expect(missing_debug_implementations)] pub struct Align2<T>(T); #[cfg(target_has_atomic_load_store = "32")] #[repr(C, align(4))]+ #[expect(missing_debug_implementations)] pub struct Align4<T>(T); #[cfg(target_has_atomic_load_store = "64")] #[repr(C, align(8))]+ #[expect(missing_debug_implementations)] pub struct Align8<T>(T); #[cfg(any(target_has_atomic_load_store = "128", doc))] #[repr(C, align(16))]+ #[expect(missing_debug_implementations)] pub struct Align16<T>(T); }