Commit Graph

5 Commits (acff470c7fe5f39ad7ff79843e2ba9eb801579b6)

Author SHA1 Message Date
github-actions[bot] acff470c7f
Version Packages (#1232)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-16 11:24:22 +09:00
Jonathan Haines 9235709060
refactor: composite build (#1230)
* refactor: composite build

* chore(ua-blocker): move demo.ts out of src
2025-06-16 11:23:47 +09:00
github-actions[bot] 40f916f944
chore(ua-blocker): update robots.json from upstream (#1229)
* chore(ua-blocker): update robots.json from upstream

* add changeset

* format

---------

Co-authored-by: yusukebe <10682+yusukebe@users.noreply.github.com>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-06-16 11:00:08 +09:00
github-actions[bot] cf3c17e3d1
Version Packages (#1228)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-14 06:08:40 +09:00
Colin Ozanne be73703184
feat: introduce UA Blocker Middleware (#1181)
* feat: create AI bot blocker middleware

* chore: add changeset

* fix: uppercase function called too late

* chore: don't version-control robots.json

* chore: track `robots.json`

* ci: add `@hono/ai-robots-txt` workflow script

* fix: change initial version

* feat: add automatic `robots.json` sync from upstream

* feat!: change package name and architecture

* refactor(ua-blocker): prebuild compiled regex (#1)

* fix: add json data files to tsconfig

* chore: rename workflow files

* fix: test if string _contains_ "Yes"

It might be a markdown link, so not the exact string, but "[Yes](<link>)"

* fix: tests reflect the fixed "Yes" check

* feat: move generator back to prebuild

generated regex should use the version-controled robots.json, not
directly the upstream file

* chore: add .zed

* chore: remove unused files

* fix: properly setup workspace before running scripts

* chore: remove `prebuild` script from `build`, `typecheck`, and `test`

* chore: run `getrobotstxt` and `prebuild`

* fix: export `RegExp`s, not `string[]`s

* chore: mention RegExp and uppercase matching in docs

* fix: adapt tests to regex exports

* chore: add tests for direct regex passing

* chore: format code

---------

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
2025-06-14 06:00:42 +09:00