UNPKG

@variablesoftware/ts-retry-backoff

Version:

🎛️🔁🚀 A tiny, zero‑dependencies retry helper with exponential backoff + jitter—usable for KV, HTTP, Durable Objects, or any async function.

114 lines (113 loc) 3.72 kB
{ "name": "@variablesoftware/ts-retry-backoff", "description": "🎛️🔁🚀 A tiny, zero‑dependencies retry helper with exponential backoff + jitter—usable for KV, HTTP, Durable Objects, or any async function.", "version": "0.3.3", "author": { "name": "Rob Friedman", "email": "bunkcode@variablesoftware.com", "url": "https://github.com/variablesoftware" }, "keywords": [ "typescript", "retry", "backoff", "exponential-backoff", "jitter", "async", "promise", "promise-retry", "resilience", "retries", "exponential", "failure", "failure-recovery", "timeout", "delay", "throttle", "zero-dependencies" ], "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "LICENSE.txt", "README.md" ], "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "type": "module", "lint-staged": { "**/*.{ts,js,mjs,cts}": "eslint --fix" }, "scripts": { "upgrade:latest": "pnpm self-update && pnpm up --latest", "upgrade:all": "pnpm up --latest --recursive", "bump": "git commit --allow-empty -m 'fix: empty commit bump to fix version. 🪄'", "build": "tsc", "prepare": "husky install", "watch:build": "tsc --watch", "build:release": "pnpm run build", "minify:options": "pnpm terser --timings --compress --mangle --toplevel --source-map includeSources ", "minify": "pnpm run minify:options dist/*.js --output dist/index.min.js", "clean:all:tags": "rm -rf dist && git tag -d $(git tag)", "dev": "pnpm vitest watch", "format": "pnpm run format:all", "format:all": "pnpm prettier --write --log-level error .", "lint": "eslint --stats . --ext .ts,.tsx", "lint:fix": "eslint --stats . --ext .ts,.tsx --fix-dry-run", "lint:fix:nodry": "eslint --stats . --ext .ts,.tsx --fix", "prettier:check": "pnpm prettier --check .", "publish:pnpm": "pnpm publish --access public", "test": "vitest run", "watch:test": "pnpm vitest --watch", "build:test": "pnpm run build && pnpm run test", "clean": "rm -rf dist", "prebuild": "pnpm run clean", "prepack": "pnpm clean-pkg-json --dry", "prepublishOnly": "pnpm run build:test", ":patch": "pnpm version patch", ":minor": "pnpm version minor", ":major": "pnpm version major", "release": "semantic-release", "release2": "pnpm run clean && pnpm run build:release && git push && git push --tags && pnpm publish --access public", "release2:dry": "pnpm run clean && pnpm run build:release && npm pack --dry-run" }, "engines": { "node": ">=14" }, "repository": { "type": "git", "url": "https://github.com/variablesoftware/ts-retry-backoff.git" }, "devDependencies": { "@eslint/config-inspector": "^1.1.0", "@eslint/js": "^9.31.0", "@microsoft/tsdoc": "^0.15.1", "@microsoft/tsdoc-config": "^0.17.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.3", "@semantic-release/npm": "^12.0.2", "@semantic-release/release-notes-generator": "^14.0.3", "@typescript-eslint/eslint-plugin": "^8.37.0", "@typescript-eslint/parser": "^8.37.0", "@vitest/coverage-v8": "3.2.4", "clean-pkg-json": "^1.3.0", "eslint": "^9.31.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-tsdoc": "^0.4.0", "husky": "^9.1.7", "prettier": "^3.6.2", "semantic-release": "^24.2.7", "terser": "^5.43.1", "tslib": "^2.8.1", "typescript": "^5.8.3", "vitest": "^3.2.4" } }