Commit Graph

18 Commits (9f6278f51c846a171a9baa6335fb8fbd9b42cb1c)

Author SHA1 Message Date
github-actions[bot] 2498ccab03
Version Packages (#1299)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-11 08:28:49 +09:00
Jonathan Haines 6e53f6e8f3
test: vitest include (#1297) 2025-07-11 08:28:28 +09:00
github-actions[bot] 18dec85b78
chore(ua-blocker): update robots.json from upstream (#1298)
Co-authored-by: yusukebe <10682+yusukebe@users.noreply.github.com>
2025-07-11 08:19:58 +09:00
github-actions[bot] 08981e9e78
Version Packages (#1286)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-06 17:43:37 +09:00
3w36zj6 16c103c2a9
chore: update hono version to 4.8 (#1281)
* chore: update hono version to 4.8

* chore: add hono as a devDependency to all workspaces
2025-07-05 18:37:06 +09:00
github-actions[bot] 02a703cffa
chore(ua-blocker): update robots.json from upstream (#1280)
Co-authored-by: yusukebe <10682+yusukebe@users.noreply.github.com>
2025-07-04 18:13:57 +09:00
Jonathan Haines 7b81b1579a
chore: expand hono peer dependency (#1276)
* chore: expand hono peer dependency

* remove the changeset
2025-07-03 19:04:24 +09:00
github-actions[bot] 57ee14c739
Version Packages (#1271)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-29 14:54:16 +09:00
github-actions[bot] 07e50772ec
chore(ua-blocker): update robots.json from upstream (#1270)
Co-authored-by: yusukebe <10682+yusukebe@users.noreply.github.com>
2025-06-29 14:50:51 +09:00
Jonathan Haines b62061faec
chore: update vitest to v3.2 (#1220) 2025-06-20 06:59:04 +09:00
Jonathan Haines 39a435b738
refactor(tsconfig): use `configDir` (#1238) 2025-06-19 16:52:41 +09:00
github-actions[bot] 69a278a2d3
Version Packages (#1239)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-19 15:34:00 +09:00
github-actions[bot] 6378861217
chore(ua-blocker): update robots.json from upstream (#1236)
Co-authored-by: yusukebe <10682+yusukebe@users.noreply.github.com>
2025-06-19 15:24:43 +09:00
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