Compare commits

...

5 Commits

Author SHA1 Message Date
github-actions[bot] 5cba9a4819
Version Packages (#1233)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-16 11:29:29 +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
Max Gerber a2409d2314
chore: Prettier should operate on all files (#1222)
* chore: Prettier should operate on all files

* Update package.json

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>

---------

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
2025-06-15 09:08:01 +09:00
91 changed files with 125 additions and 101 deletions

View File

@ -41,8 +41,7 @@ jobs:
with:
node-version: 20.x
- run: yarn workspaces focus hono-middleware @hono/${{ matrix.package }}
- run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run build
- run: yarn workspace @hono/${{ matrix.package }} publint
- run: yarn workspaces foreach --topological --recursive --from @hono/${{ matrix.package }} run publint
- run: yarn workspace @hono/${{ matrix.package }} typecheck
- run: yarn eslint packages/${{ matrix.package }}
- run: yarn prettier --check . !packages packages/${{ matrix.package }}

View File

@ -1,4 +1,9 @@
.changeset
.vscode
.yarn
# Casbin
*.conf
*.csv
**/generated.ts

View File

@ -17,8 +17,8 @@
"test": "vitest",
"lint": "eslint 'packages/**/*.{ts,tsx}'",
"lint:fix": "eslint --fix 'packages/**/*.{ts,tsx}'",
"format": "prettier --check 'packages/**/*.{ts,tsx}'",
"format:fix": "prettier --write 'packages/**/*.{ts,tsx}'"
"format": "prettier --check .",
"format:fix": "prettier --write ."
},
"license": "MIT",
"private": true,

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true,
"jsx": "react"
},

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/auth-js",
"noEmit": true,
"jsx": "react"
},
"include": ["**/*.test.ts", "vitest.config.ts"],

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true,
"types": ["node", "bun"]
},

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["./src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true,
"types": ["@cloudflare/workers-types"]
},

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,8 +1,15 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": true,
"isolatedDeclarations": true,
"types": ["@cloudflare/workers-types"]
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],
"references": []
}

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -2,9 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/firebase-auth",
"noEmit": true
"types": ["@cloudflare/workers-types"]
},
"include": ["**/*.test.ts", "vitest.config.ts"],
"include": ["**/*.test.ts", "firebase-tools.d.ts", "vitest.config.ts"],
"references": [
{
"path": "./tsconfig.build.json"

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true,
"types": ["node", "ws"]
},

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["package.json", "src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo"
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,5 +1,11 @@
# @hono/ua-blocker
## 0.1.1
### Patch Changes
- [#1229](https://github.com/honojs/middleware/pull/1229) [`40f916f944f368775f9fc00451f649edcd140286`](https://github.com/honojs/middleware/commit/40f916f944f368775f9fc00451f649edcd140286) Thanks [@github-actions](https://github.com/apps/github-actions)! - chore(ua-blocker): update robots.json from upstream
## 0.1.0
### Minor Changes

View File

@ -1,6 +1,6 @@
import { uaBlocker } from '@hono/ua-blocker'
import { nonRespectingAiBots, useAiRobotsTxt } from '@hono/ua-blocker/ai-bots'
import { Hono } from 'hono'
import { uaBlocker } from '../src'
import { nonRespectingAiBots, useAiRobotsTxt } from '../src/ai-bots'
const app = new Hono()

View File

@ -1,6 +1,6 @@
{
"name": "@hono/ua-blocker",
"version": "0.1.0",
"version": "0.1.1",
"description": "User agent-based blocker for Hono",
"type": "module",
"module": "dist/index.js",

View File

@ -314,6 +314,13 @@
"description": "MistralAI-User is for user actions in LeChat. When users ask LeChat a question, it may visit a web page to help answer and include a link to the source in its response.",
"respect": "Yes"
},
"MyCentralAIScraperBot": {
"operator": "Unclear at this time.",
"respect": "Unclear at this time.",
"function": "AI data scraper",
"frequency": "Unclear at this time.",
"description": "Operator and data use is unclear at this time."
},
"NovaAct": {
"operator": "Unclear at this time.",
"respect": "Unclear at this time.",
@ -398,6 +405,13 @@
"operator": "[phind](https://www.phind.com/)",
"respect": "Unclear at this time."
},
"Poseidon Research Crawler": {
"operator": "[Poseidon Research](https://www.poseidonresearch.com)",
"description": "Lab focused on scaling the interpretability research necessary to make better AI systems possible.",
"frequency": "No explicit frequency provided.",
"function": "AI research crawler",
"respect": "Unclear at this time."
},
"QualifiedBot": {
"description": "Operated by Qualified as part of their suite of AI product offerings.",
"frequency": "No explicit frequency provided.",

View File

@ -44,6 +44,7 @@ User-agent: Meta-ExternalAgent
User-agent: meta-externalfetcher
User-agent: Meta-ExternalFetcher
User-agent: MistralAI-User/1.0
User-agent: MyCentralAIScraperBot
User-agent: NovaAct
User-agent: OAI-SearchBot
User-agent: omgili
@ -56,6 +57,7 @@ User-agent: Perplexity-User
User-agent: PerplexityBot
User-agent: PetalBot
User-agent: PhindBot
User-agent: Poseidon Research Crawler
User-agent: QualifiedBot
User-agent: QuillBot
User-agent: quillbot.com
@ -78,7 +80,7 @@ User-agent: YandexAdditionalBot
User-agent: YouBot
Disallow: /
`;
export const ALL_BOTS = ["AI2Bot", "Ai2Bot-Dolma", "aiHitBot", "Amazonbot", "Andibot", "anthropic-ai", "Applebot", "Applebot-Extended", "bedrockbot", "Brightbot 1.0", "Bytespider", "CCBot", "ChatGPT-User", "Claude-SearchBot", "Claude-User", "Claude-Web", "ClaudeBot", "cohere-ai", "cohere-training-data-crawler", "Cotoyogi", "Crawlspace", "Diffbot", "DuckAssistBot", "EchoboxBot", "FacebookBot", "Factset_spyderbot", "FirecrawlAgent", "FriendlyCrawler", "Google-CloudVertexBot", "Google-Extended", "GoogleOther", "GoogleOther-Image", "GoogleOther-Video", "GPTBot", "iaskspider/2.0", "ICC-Crawler", "ImagesiftBot", "img2dataset", "ISSCyberRiskCrawler", "Kangaroo Bot", "meta-externalagent", "Meta-ExternalAgent", "meta-externalfetcher", "Meta-ExternalFetcher", "MistralAI-User/1.0", "NovaAct", "OAI-SearchBot", "omgili", "omgilibot", "Operator", "PanguBot", "Panscient", "panscient.com", "Perplexity-User", "PerplexityBot", "PetalBot", "PhindBot", "QualifiedBot", "QuillBot", "quillbot.com", "SBIntuitionsBot", "Scrapy", "SemrushBot", "SemrushBot-BA", "SemrushBot-CT", "SemrushBot-OCOB", "SemrushBot-SI", "SemrushBot-SWA", "Sidetrade indexer bot", "TikTokSpider", "Timpibot", "VelenPublicWebCrawler", "Webzio-Extended", "wpbot", "YandexAdditional", "YandexAdditionalBot", "YouBot"];
export const NON_RESPECTING_BOTS = ["Andibot", "anthropic-ai", "Applebot", "Brightbot 1.0", "Bytespider", "Claude-Web", "cohere-ai", "cohere-training-data-crawler", "Diffbot", "DuckAssistBot", "EchoboxBot", "Factset_spyderbot", "iaskspider/2.0", "img2dataset", "ISSCyberRiskCrawler", "Kangaroo Bot", "Meta-ExternalAgent", "meta-externalfetcher", "Meta-ExternalFetcher", "NovaAct", "Operator", "PanguBot", "Perplexity-User", "PhindBot", "QualifiedBot", "QuillBot", "quillbot.com", "Scrapy", "Sidetrade indexer bot", "TikTokSpider", "Timpibot", "Webzio-Extended", "wpbot"];
export const ALL_BOTS_REGEX = /(AI2BOT|AI2BOT-DOLMA|AIHITBOT|AMAZONBOT|ANDIBOT|ANTHROPIC-AI|APPLEBOT|APPLEBOT-EXTENDED|BEDROCKBOT|BRIGHTBOT 1.0|BYTESPIDER|CCBOT|CHATGPT-USER|CLAUDE-SEARCHBOT|CLAUDE-USER|CLAUDE-WEB|CLAUDEBOT|COHERE-AI|COHERE-TRAINING-DATA-CRAWLER|COTOYOGI|CRAWLSPACE|DIFFBOT|DUCKASSISTBOT|ECHOBOXBOT|FACEBOOKBOT|FACTSET_SPYDERBOT|FIRECRAWLAGENT|FRIENDLYCRAWLER|GOOGLE-CLOUDVERTEXBOT|GOOGLE-EXTENDED|GOOGLEOTHER|GOOGLEOTHER-IMAGE|GOOGLEOTHER-VIDEO|GPTBOT|IASKSPIDER\/2.0|ICC-CRAWLER|IMAGESIFTBOT|IMG2DATASET|ISSCYBERRISKCRAWLER|KANGAROO BOT|META-EXTERNALAGENT|META-EXTERNALAGENT|META-EXTERNALFETCHER|META-EXTERNALFETCHER|MISTRALAI-USER\/1.0|NOVAACT|OAI-SEARCHBOT|OMGILI|OMGILIBOT|OPERATOR|PANGUBOT|PANSCIENT|PANSCIENT.COM|PERPLEXITY-USER|PERPLEXITYBOT|PETALBOT|PHINDBOT|QUALIFIEDBOT|QUILLBOT|QUILLBOT.COM|SBINTUITIONSBOT|SCRAPY|SEMRUSHBOT|SEMRUSHBOT-BA|SEMRUSHBOT-CT|SEMRUSHBOT-OCOB|SEMRUSHBOT-SI|SEMRUSHBOT-SWA|SIDETRADE INDEXER BOT|TIKTOKSPIDER|TIMPIBOT|VELENPUBLICWEBCRAWLER|WEBZIO-EXTENDED|WPBOT|YANDEXADDITIONAL|YANDEXADDITIONALBOT|YOUBOT)/;
export const NON_RESPECTING_BOTS_REGEX = /(ANDIBOT|ANTHROPIC-AI|APPLEBOT|BRIGHTBOT 1.0|BYTESPIDER|CLAUDE-WEB|COHERE-AI|COHERE-TRAINING-DATA-CRAWLER|DIFFBOT|DUCKASSISTBOT|ECHOBOXBOT|FACTSET_SPYDERBOT|IASKSPIDER\/2.0|IMG2DATASET|ISSCYBERRISKCRAWLER|KANGAROO BOT|META-EXTERNALAGENT|META-EXTERNALFETCHER|META-EXTERNALFETCHER|NOVAACT|OPERATOR|PANGUBOT|PERPLEXITY-USER|PHINDBOT|QUALIFIEDBOT|QUILLBOT|QUILLBOT.COM|SCRAPY|SIDETRADE INDEXER BOT|TIKTOKSPIDER|TIMPIBOT|WEBZIO-EXTENDED|WPBOT)/;
export const ALL_BOTS = ["AI2Bot", "Ai2Bot-Dolma", "aiHitBot", "Amazonbot", "Andibot", "anthropic-ai", "Applebot", "Applebot-Extended", "bedrockbot", "Brightbot 1.0", "Bytespider", "CCBot", "ChatGPT-User", "Claude-SearchBot", "Claude-User", "Claude-Web", "ClaudeBot", "cohere-ai", "cohere-training-data-crawler", "Cotoyogi", "Crawlspace", "Diffbot", "DuckAssistBot", "EchoboxBot", "FacebookBot", "Factset_spyderbot", "FirecrawlAgent", "FriendlyCrawler", "Google-CloudVertexBot", "Google-Extended", "GoogleOther", "GoogleOther-Image", "GoogleOther-Video", "GPTBot", "iaskspider/2.0", "ICC-Crawler", "ImagesiftBot", "img2dataset", "ISSCyberRiskCrawler", "Kangaroo Bot", "meta-externalagent", "Meta-ExternalAgent", "meta-externalfetcher", "Meta-ExternalFetcher", "MistralAI-User/1.0", "MyCentralAIScraperBot", "NovaAct", "OAI-SearchBot", "omgili", "omgilibot", "Operator", "PanguBot", "Panscient", "panscient.com", "Perplexity-User", "PerplexityBot", "PetalBot", "PhindBot", "Poseidon Research Crawler", "QualifiedBot", "QuillBot", "quillbot.com", "SBIntuitionsBot", "Scrapy", "SemrushBot", "SemrushBot-BA", "SemrushBot-CT", "SemrushBot-OCOB", "SemrushBot-SI", "SemrushBot-SWA", "Sidetrade indexer bot", "TikTokSpider", "Timpibot", "VelenPublicWebCrawler", "Webzio-Extended", "wpbot", "YandexAdditional", "YandexAdditionalBot", "YouBot"];
export const NON_RESPECTING_BOTS = ["Andibot", "anthropic-ai", "Applebot", "Brightbot 1.0", "Bytespider", "Claude-Web", "cohere-ai", "cohere-training-data-crawler", "Diffbot", "DuckAssistBot", "EchoboxBot", "Factset_spyderbot", "iaskspider/2.0", "img2dataset", "ISSCyberRiskCrawler", "Kangaroo Bot", "Meta-ExternalAgent", "meta-externalfetcher", "Meta-ExternalFetcher", "MyCentralAIScraperBot", "NovaAct", "Operator", "PanguBot", "Perplexity-User", "PhindBot", "Poseidon Research Crawler", "QualifiedBot", "QuillBot", "quillbot.com", "Scrapy", "Sidetrade indexer bot", "TikTokSpider", "Timpibot", "Webzio-Extended", "wpbot"];
export const ALL_BOTS_REGEX = /(AI2BOT|AI2BOT-DOLMA|AIHITBOT|AMAZONBOT|ANDIBOT|ANTHROPIC-AI|APPLEBOT|APPLEBOT-EXTENDED|BEDROCKBOT|BRIGHTBOT 1.0|BYTESPIDER|CCBOT|CHATGPT-USER|CLAUDE-SEARCHBOT|CLAUDE-USER|CLAUDE-WEB|CLAUDEBOT|COHERE-AI|COHERE-TRAINING-DATA-CRAWLER|COTOYOGI|CRAWLSPACE|DIFFBOT|DUCKASSISTBOT|ECHOBOXBOT|FACEBOOKBOT|FACTSET_SPYDERBOT|FIRECRAWLAGENT|FRIENDLYCRAWLER|GOOGLE-CLOUDVERTEXBOT|GOOGLE-EXTENDED|GOOGLEOTHER|GOOGLEOTHER-IMAGE|GOOGLEOTHER-VIDEO|GPTBOT|IASKSPIDER\/2.0|ICC-CRAWLER|IMAGESIFTBOT|IMG2DATASET|ISSCYBERRISKCRAWLER|KANGAROO BOT|META-EXTERNALAGENT|META-EXTERNALAGENT|META-EXTERNALFETCHER|META-EXTERNALFETCHER|MISTRALAI-USER\/1.0|MYCENTRALAISCRAPERBOT|NOVAACT|OAI-SEARCHBOT|OMGILI|OMGILIBOT|OPERATOR|PANGUBOT|PANSCIENT|PANSCIENT.COM|PERPLEXITY-USER|PERPLEXITYBOT|PETALBOT|PHINDBOT|POSEIDON RESEARCH CRAWLER|QUALIFIEDBOT|QUILLBOT|QUILLBOT.COM|SBINTUITIONSBOT|SCRAPY|SEMRUSHBOT|SEMRUSHBOT-BA|SEMRUSHBOT-CT|SEMRUSHBOT-OCOB|SEMRUSHBOT-SI|SEMRUSHBOT-SWA|SIDETRADE INDEXER BOT|TIKTOKSPIDER|TIMPIBOT|VELENPUBLICWEBCRAWLER|WEBZIO-EXTENDED|WPBOT|YANDEXADDITIONAL|YANDEXADDITIONALBOT|YOUBOT)/;
export const NON_RESPECTING_BOTS_REGEX = /(ANDIBOT|ANTHROPIC-AI|APPLEBOT|BRIGHTBOT 1.0|BYTESPIDER|CLAUDE-WEB|COHERE-AI|COHERE-TRAINING-DATA-CRAWLER|DIFFBOT|DUCKASSISTBOT|ECHOBOXBOT|FACTSET_SPYDERBOT|IASKSPIDER\/2.0|IMG2DATASET|ISSCYBERRISKCRAWLER|KANGAROO BOT|META-EXTERNALAGENT|META-EXTERNALFETCHER|META-EXTERNALFETCHER|MYCENTRALAISCRAPERBOT|NOVAACT|OPERATOR|PANGUBOT|PERPLEXITY-USER|PHINDBOT|POSEIDON RESEARCH CRAWLER|QUALIFIEDBOT|QUILLBOT|QUILLBOT.COM|SCRAPY|SIDETRADE INDEXER BOT|TIKTOKSPIDER|TIMPIBOT|WEBZIO-EXTENDED|WPBOT)/;

View File

@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo"
},
"include": ["src/**/*.ts", "src/**/*.json"],
"exclude": ["**/*.test.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.script.tsbuildinfo",
"allowImportingTsExtensions": true,
"noEmit": true,

View File

@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/out-tsc/packages/ua-blocker",
"outDir": "../../dist/out-tsc/packages/ua-blocker",
"types": ["vitest/globals"]
},
"include": ["**/*.test.ts", "vitest.config.ts"],
"include": ["examples/**/*.ts", "**/*.test.ts", "vitest.config.ts"],
"references": [
{
"path": "./tsconfig.build.json"

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,12 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo"
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts", "**/*.test-d.ts"],
"references": [{ "path": "../zod-validator/tsconfig.json" }]
"references": [{ "path": "../zod-validator/tsconfig.build.json" }]
}

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -1,10 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"emitDeclarationOnly": true,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],

View File

@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [

View File

@ -2,15 +2,14 @@
"compilerOptions": {
"target": "ES2022",
"module": "esnext",
"composite": true,
"declaration": true,
"declarationMap": true,
"moduleResolution": "bundler",
"esModuleInterop": true,
"emitDeclarationOnly": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"noEmitOnError": true,
"strict": true,
"skipLibCheck": true,
"noUnusedLocals": false,

View File

@ -1,5 +1,4 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true
},

View File

@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"composite": false,
"jsx": "react",
"types": ["@cloudflare/workers-types", "node", "ws"]
}