TypeFetched/package.json
Casey Collier feeba8d1a0 feat: Release v0.2.0 - Major streaming and performance improvements
- Add native SSE streaming support with streamSSE() method
- Add POST body support to all streaming methods (stream, streamJSON, streamSSE)
- Add race() method for first successful response from multiple endpoints
- Add batch() method for efficient bulk operations with concurrency control
- Add parallel() method using Web Workers for true parallelism
- Add uploadResumable() with adaptive chunking and progress tracking
- Add uploadStream() for large file/model uploads
- Add throttled() method for bandwidth limiting
- Add streamWithReconnect() for resilient streaming with auto-reconnection
- Remove duplicate withExponentialBackoff (already in retry logic)
- Remove overly specialized AI methods (trackTokenUsage, parallelInference)
- Fix TypeScript strict mode compatibility
- Add comprehensive CHANGELOG.md
- Bundle size: 11KB gzipped (up from 8KB, still under 15KB target)

BREAKING CHANGES:
- Removed withExponentialBackoff() - use built-in retry config instead
- Removed trackTokenUsage() - too specialized for general HTTP client
- Removed parallelInference() - use generic parallel() method instead

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-20 18:34:01 -04:00

85 lines
2.2 KiB
JSON

{
"name": "@catalystlabs/typedfetch",
"version": "0.2.0",
"description": "Type-safe HTTP client that doesn't suck - Fetch for humans who have stuff to build",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "bun run build:clean && bun run build:esm && bun run build:cjs && bun run build:types",
"build:clean": "rm -rf dist && mkdir dist",
"build:esm": "bun build src/index.ts --outdir dist --target browser --format esm",
"build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --target=node16 --format=cjs --platform=node",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"typecheck": "tsc --noEmit",
"sync-version": "node scripts/sync-version.js",
"prepublishOnly": "bun run build && bun run typecheck"
},
"keywords": [
"http",
"fetch",
"client",
"typescript",
"type-safe",
"api",
"rest",
"xhr",
"request",
"response",
"cache",
"retry",
"resilience",
"proxy",
"interceptor",
"transform"
],
"author": "TypedFetch Contributors",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://git.catalystlab.cc/caseycollier/TypeFetched.git"
},
"bugs": {
"url": "https://git.catalystlab.cc/caseycollier/TypeFetched/issues"
},
"homepage": "https://typedfetch.dev",
"devDependencies": {
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"esbuild": "^0.19.0",
"eslint": "^8.0.0",
"gzip-size-cli": "^5.1.0",
"typescript": "^5.8.3",
"vitest": "^1.0.0"
},
"peerDependencies": {
"typescript": ">=4.7.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"engines": {
"node": ">=16.0.0"
},
"sideEffects": false,
"funding": {
"type": "github",
"url": "https://github.com/sponsors/typedfetch"
}
}