Skip to content

refactor: improve version stability#45

Merged
g-plane merged 8 commits into
browserslist:mainfrom
swwind:feat/baseline
Jul 5, 2026
Merged

refactor: improve version stability#45
g-plane merged 8 commits into
browserslist:mainfrom
swwind:feat/baseline

Conversation

@swwind

@swwind swwind commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Currently the version management is not great aligned with the js version, and cargo test fails if any of the 3 dependencies' versions mismatch. Besides, caniuse (used by this) and caniuse-lite (used by js version) does not always keep in sync even with the similar versions. (the first one does not seems to have every version published on npm exist on github)

This PR adjusted the current data generating strategies, we just copy data directly from node_modules, for better tests with the js version.

  • Removed all submodules in vendor
  • Added pnpm and cargo lock files
  • Adjusted generate-data to copy data from node_modules

Steps for next data update: just run pnpm update and that's done.

@swwind swwind changed the title feat: baseline query & improves Draft: feat: baseline query & improves Jun 4, 2026
@swwind swwind marked this pull request as draft June 4, 2026 08:51
@swwind swwind changed the title Draft: feat: baseline query & improves Draft: refactor: improve version stability Jun 4, 2026
@swwind swwind marked this pull request as ready for review June 4, 2026 09:20
@swwind swwind changed the title Draft: refactor: improve version stability refactor: improve version stability Jun 4, 2026
@swwind

swwind commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

@g-plane please take a look at this pr now.

@g-plane

g-plane commented Jun 7, 2026

Copy link
Copy Markdown
Member

We don't need to commit Cargo.lock.

@swwind

swwind commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

This PR was just a proposal for better version management, but I think it might not be worth it if we also want to merge #46. The baseline-browser-mapping package does not have a well-structured format for scraping data from its published version on npm. In fact, if we don't want to introduce automatic update scripts for this project, leaving version management as a manual process isn't a huge problem.

@g-plane

g-plane commented Jun 11, 2026

Copy link
Copy Markdown
Member

Can we open an issue about this in https://github.com/web-platform-dx/baseline-browser-mapping ? For example, ask them to produce machine-readable format.

@g-plane g-plane left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread generate-data/src/main.rs Outdated
Comment thread generate-data/src/main.rs Outdated
Co-authored-by: Pig Fang <g-plane@hotmail.com>
@g-plane g-plane merged commit 91573d3 into browserslist:main Jul 5, 2026
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.

2 participants