naorpeled
2a2ba39ddb
fix: restore ES5 output for bundled.js, and assert it
...
`bundled.js` stopped being ES5 when the webpack build was replaced by tsdown
in #628 . It parses at ecmaVersion 2015 but not 5:
var t=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports)
That is rolldown's `__commonJS` interop helper. `@rolldown/plugin-babel` only
transforms input modules, and rolldown appends the helper afterwards; terser
with `ecma: 5` avoids introducing newer syntax but does not transpile, so the
arrow functions reached the published file. `es5.js` has no CommonJS
dependencies and never gets the helper, which is why only `bundled.js` broke.
The effect is total rather than partial: in an ES5 engine the whole script is
a SyntaxError, so `bundled.js` — the bundle that exists specifically to serve
those engines, polyfills included — does not load at all there.
Lower the emitted chunk with a babel renderChunk pass that runs after bundling
and before terser, so rolldown's own helpers are covered too. Costs 2.8 kB
(+1.6%) on bundled.js; es5.js is unchanged at 34 kB.
The existing guard was a grep for backticks, which this syntax slips straight
past. Replace it with an acorn parse at ecmaVersion 5 over both legacy
bundles, plus a tokeniser check for real template literals (backticks inside
core-js string literals are fine, and 2.14.1 shipped three of them).
Verified by reverting the build fix: `bundled.js parses as ES5` fails, and
passes again once restored. Also confirmed bundled.js loads and parses the
live navigator.userAgent in a real browser.
2026-08-30 21:59:08 +03:00
Naor Peled
28174aca5e
fix: keep every published file reachable, and test all four build artifacts ( #631 )
2026-08-30 21:40:10 +03:00
Naor Peled
1d7923497f
fix: resolve open GitHub security findings ( #630 )
2026-08-30 21:05:22 +03:00
Naor Peled
a88622557d
Dual packaging, without breaking existing consumers ( #628 )
...
Co-authored-by: Yasumasa Ashida <ys.ashida@gmail.com >
2026-08-30 00:10:11 +03:00
Jelle Raaijmakers
a37b8be8a7
feat: add Ladybird browser support ( #627 )
2026-07-31 12:10:10 +03:00
Swapnil Sahu
92b5639733
feat: add support for HeyTap Browser and Vivo Browser identification ( #621 )
2026-04-10 23:18:44 +07:00
Naor Peled
2c253c3ad2
fix: prevent Motorola Edge devices from being misidentified as Microsoft Edge ( #612 )
2026-03-14 16:17:53 +02:00
naorpeled
cf397a4b50
feat: add Vivaldi client hints support
2026-02-13 23:09:48 +02:00
Naor Peled
587196f211
feat: add copyright comment to bundle ( #605 )
2026-02-13 22:57:03 +02:00
naorpeled
507b205791
chore: remove github copilot instructions file
2026-02-13 22:31:33 +02:00
naorpeled
f11700291a
Replace .github/copilot-instructions.md with AGENTS.md
2026-02-13 22:30:26 +02:00
Stas Tolpekin
8ddb4f5a0d
feat: add the ability to use an array of versions in Parser.satisfies() ( #466 )
2026-02-13 22:15:55 +02:00
Naor Peled
eb3f153def
fix: attempt to resolve build issues ( #604 )
v2.14.1
2026-02-09 00:03:04 +02:00
Denis Demchenko
740d6c4844
Update npm to latest version before publishing to npm registry ( #603 )
...
Co-authored-by: Claude <noreply@anthropic.com >
v2.14.0
2026-02-08 23:37:11 +02:00
naorpeled
2bb8caee93
fix: remove prepublish hook
2026-02-07 19:48:42 +02:00
naorpeled
382bc22397
chore: update publish flow
2026-02-07 19:43:20 +02:00
naorpeled
e2318ef12d
fix: attemp to resolve NPM publish issues
2026-02-07 19:12:34 +02:00
naorpeled
8f9badd27f
chore: update publish flow
2026-02-07 19:05:32 +02:00
naorpeled
5032e0ee71
docs: resolve missing referenced links in index page
2026-02-07 18:50:07 +02:00
Copilot
a2d6ce81b1
feat: add Smart TV platform detection ( #582 )
2026-02-07 18:44:55 +02:00
Copilot
227f5ecd4b
feat: add Brave browser support via clientHints ( #597 )
2026-02-07 18:29:20 +02:00
naorpeled
fa08e7c6f3
docs: fix badges
2026-02-07 18:05:05 +02:00
naorpeled
6cf163cfef
docs: cleanup README badges
2026-02-07 18:00:30 +02:00
Copilot
fdcc87319b
docs: document user agent client hints addition
2026-02-07 17:57:02 +02:00
Jam Hsu
c09ff24ae1
feat: Add Line sipder detection ( #600 )
...
Co-authored-by: Jam <jam.hsu@lativ.com.tw >
2026-02-06 23:08:55 +02:00
Jonathan Kingston
aaa67db25e
feat: add clientHints support + DuckDuckGo detection ( #595 )
2026-02-01 23:50:33 +02:00
naorpeled
0c6fdd7248
Merge branch 'master' of github.com:bowser-js/bowser
2026-01-31 19:08:12 +02:00
naorpeled
fbccc9616a
docs: add naorpeled to Funding.yml
2026-01-31 19:07:46 +02:00
Jam Hsu
74463f6b23
feat: Add Slack bot detection ( #596 )
...
Co-authored-by: Jam <jam.hsu@lativ.com.tw >
2026-01-31 18:54:09 +02:00
Copilot
0f51d8bce8
Replace lancedikson with bowser-js in GitHub URLs ( #592 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com >
2025-11-30 18:58:23 +02:00
Naor Peled
1df8838756
revert: rollback addition of named exports ( #591 )
v2.13.1
2025-11-29 02:01:44 +02:00
naorpeled
eef8480944
docs(package.json): add naorpeled as contributor
v2.13.0
2025-11-23 00:08:32 +02:00
Naor Peled
514510d847
feat: add support for latest MacOS ( #580 )
...
Co-authored-by: Seiji Kohara <9543980+seijikohara@users.noreply.github.com >
2025-11-22 23:50:54 +02:00
Naor Peled
4a6dacca08
feat: add Sogou browser support ( #579 )
...
Co-authored-by: 猫猫 <49067249+NotEvenANeko@users.noreply.github.com >
2025-11-22 23:31:31 +02:00
Copilot
be90a00e37
feat: add LibreWolf browser detection ( #578 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com >
2025-11-22 19:01:03 +02:00
Naor Peled
f7d2c0693c
feat: add support for AI crawl bots ( #577 )
2025-11-22 18:05:08 +02:00
Lucio Martinez
771dfb2dfe
feat: add more bot platforms ( #542 )
...
Co-authored-by: naorpeled <me@naor.dev >
2025-11-22 16:44:08 +02:00
Copilot
bd5cb7186c
feat: add named exports for tree shaking support with modern bundlers ( #566 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com >
Co-authored-by: naorpeled <me@naor.dev >
2025-11-22 15:15:13 +02:00
Copilot
2b5ee5de8c
feat: add Support for HarmonyOS User-Agent Detection ( #567 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com >
2025-11-22 14:27:00 +02:00
Copilot
a4d0b828e4
chore: add Copilot instructions for repository ( #574 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com >
2025-11-22 13:31:12 +02:00
Naor Peled
5bfd3e9e6c
revert(index.d.ts): rollback default export to = syntax ( #570 )
v2.12.1
2025-08-23 19:32:29 +03:00
Naor Peled
3c25806efe
ci(publish): add manual trigger and retry logic for npm publish
2025-08-09 21:27:38 +03:00
Naor Peled
8ac2f6a1ec
chore(deps): change nyc version to 15 for Node 12 to work ( #565 )
v2.12.0
2025-08-09 21:05:17 +03:00
Naor Peled
20fc037785
fix: resolve CI failures ( #560 )
2025-08-09 20:51:00 +03:00
Naor Peled
afc0fbf131
ci(release): bump all deps
2025-07-06 19:24:07 +03:00
Naor Peled
e0ee0e7baf
ci: bump cache action to v4
2025-07-06 19:21:23 +03:00
Denis Demchenko
8c489bd98b
chore: move the token to secrets
2024-08-12 13:42:09 +03:00
Meir Roth
5bab4ee97d
docs: remove non-existing links in README
2024-04-28 23:42:58 +03:00
Naor Peled
16c9f22546
ci: attempt to resolve merge to master errors ( #546 )
2024-04-20 14:54:03 +03:00
Naor Peled
327e6f5e51
ci: add release drafter ( #545 )
2024-04-20 14:35:56 +03:00