Skip to content

Fix browser support bug#111

Merged
tonypconway merged 2 commits intoweb-platform-dx:mainfrom
tonypconway:browser-suppport-patch
Dec 4, 2025
Merged

Fix browser support bug#111
tonypconway merged 2 commits intoweb-platform-dx:mainfrom
tonypconway:browser-suppport-patch

Conversation

@tonypconway
Copy link
Collaborator

This patch adds in feature detection for Node.js exclusive features to ensure compatibility with browsers, and adds jasmine-browser-runner tests to ensure exported code runs in the browser.

@tonypconway tonypconway merged commit 0ab0d6f into web-platform-dx:main Dec 4, 2025
@tonypconway tonypconway deleted the browser-suppport-patch branch December 4, 2025 14:23
mergify bot added a commit to ArcadeData/arcadedb that referenced this pull request Dec 8, 2025
…2.8.32 to 2.9.4 in /studio [skip ci]

Bumps [baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping) from 2.8.32 to 2.9.4.
Release notes

*Sourced from [baseline-browser-mapping's releases](https://github.com/web-platform-dx/baseline-browser-mapping/releases).*

> v2.9.3 - remove `process.loadEnvFile()`
> ---------------------------------------
>
> What's Changed
> --------------
>
> * Remove process.loadEnfFile() from main script by [`@​tonypconway`](https://github.com/tonypconway) in [web-platform-dx/baseline-browser-mapping#112](https://github.com/web-platform-dx/baseline-browser-mapping/pull/112)
>
> **Full Changelog**: <web-platform-dx/baseline-browser-mapping@v2.9.2...v2.9.3>
>
> v2.9.2 - fix browser support bug
> --------------------------------
>
> What's Changed
> --------------
>
> * Fix browser support bug by [`@​tonypconway`](https://github.com/tonypconway) in [web-platform-dx/baseline-browser-mapping#111](https://github.com/web-platform-dx/baseline-browser-mapping/pull/111)
>   **Full Changelog**: <web-platform-dx/baseline-browser-mapping@v2.9.1...v2.9.2>
>
> v2.9.0 - Reduce frequency of data staleness warnings
> ----------------------------------------------------
>
> This version introduces a number of changes to data staleness warnings in response to [#105](https://github.com/web-platform-dx/baseline-browser-mapping/issues/105) , [#107](https://github.com/web-platform-dx/baseline-browser-mapping/issues/107) and [#109](https://github.com/web-platform-dx/baseline-browser-mapping/issues/109)
>
> * Data staleness warnings are now only shown if the `getCompatibleVersions()` or `getAllVersions()` functions are called - previously they were shown whenever the module was loaded, which meant many `browserslist` consumers were seeing the warning despite not targeting Baseline, especially those who were consuming `browserslist` in a pre-compiled format via `next.js`.
> * Adds new conditions for these warnings to be displayed which should only warn users for whom data freshness is critical:
>   + The feature cut off data must be within the last two months, i.e. `widelyAvailableOnDate: today + >2 years and 4 months` or `newly available` in a `browserslist` query.
>   + The module data must be more than 2 months old.
> * Introduces suppression options for these warning via the `options` objects and environment variables:
>   + Adds a new `suppressWarnings` boolean to the `getCompatibleVersions()` and `getAllVersions()`
>   + Respects the existing [`BROWSERSLIST_IGNORE_OLD_DATA`](browserslist/browserslist@0ae7155) environment variable.
>   + Respects a new `BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA` environment variable.
> * Adds [explanatory text to the README](https://github.com/web-platform-dx/baseline-browser-mapping?tab=readme-ov-file#keeping-baseline-browser-mapping-up-to-date) for how to avoid such warnings when reproducible builds are a requirement.
> * Change warning text to be package manager agnostic and mention the possibility of pre-compiled data.


Commits

* [`73c8429`](web-platform-dx/baseline-browser-mapping@73c8429) Patch to 2.9.4 because browser or feature data changed
* [`079e1d9`](web-platform-dx/baseline-browser-mapping@079e1d9) Browser or feature data changed
* [`3553f31`](web-platform-dx/baseline-browser-mapping@3553f31) Remove process.loadEnfFile() from main script ([#112](https://github.com/web-platform-dx/baseline-browser-mapping/issues/112))
* [`5972583`](web-platform-dx/baseline-browser-mapping@5972583) Bump version from 2.9.1 to 2.9.2
* [`0ab0d6f`](web-platform-dx/baseline-browser-mapping@0ab0d6f) Fix browser support bug ([#111](https://github.com/web-platform-dx/baseline-browser-mapping/issues/111))
* [`b326475`](web-platform-dx/baseline-browser-mapping@b326475) Patch to 2.9.1 because browser or feature data changed
* [`9ee8cbe`](web-platform-dx/baseline-browser-mapping@9ee8cbe) Browser or feature data changed
* [`226fd01`](web-platform-dx/baseline-browser-mapping@226fd01) Reduce frequency of data staleness warnings ([#108](https://github.com/web-platform-dx/baseline-browser-mapping/issues/108))
* [`6d43e5a`](web-platform-dx/baseline-browser-mapping@6d43e5a) Updating static site
* See full diff in [compare view](web-platform-dx/baseline-browser-mapping@v2.8.32...v2.9.4)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=baseline-browser-mapping&package-manager=npm\_and\_yarn&previous-version=2.8.32&new-version=2.9.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant