UNPKG

@httpx/stable-hash

Version:

Create keys or hashes from javascript values, useful for memoization or cache key generation.

108 lines 3.8 kB
{ "name": "@httpx/stable-hash", "description": "Create keys or hashes from javascript values, useful for memoization or cache key generation.", "version": "0.3.4", "license": "MIT", "author": { "name": "Vanvelthem Sébastien", "url": "https://github.com/belgattitude" }, "homepage": "https://belgattitude.github.io/httpx/stable-hash", "repository": { "type": "git", "url": "git+https://github.com/belgattitude/httpx.git", "directory": "packages/stable-hash" }, "keywords": [ "hash", "cache", "cache-keys" ], "sideEffects": false, "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.cts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./package.json": "./package.json" }, "files": [ "dist" ], "scripts": { "?build-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick", "build": "run clean && yarn run tsup", "build-release": "yarn build && rimraf ./_release && yarn pack && mkdir ./_release && tar zxvf ./package.tgz --directory ./_release && rm ./package.tgz", "bench": "vitest bench --run", "bench-codspeed": "cross-env CODSPEED=1 vitest bench --run", "bench-watch": "vitest bench", "docgen": "run-s docgen-typedoc", "docgen-typedoc": "rimraf ./docs/api && typedoc --plugin typedoc-plugin-markdown --out ./docs/api", "check-dist": "run-s check-dist-esm check-dist-cjs", "check-dist-cjs": "es-check es2022 './dist/**/*.cjs' --not './dist/*.map.js'", "check-dist-esm": "es-check es2022 './dist/**/*.mjs' --not './dist/*.map.js' --module", "check-pub": "attw --pack && publint", "check-size": "size-limit", "clean": "rimraf ./dist ./build ./coverage ./_release", "dev": "tsup --watch", "fix-staged": "lint-staged --allow-empty", "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --cache --cache-location ../../.cache/eslint/object-hash.eslintcache", "test": "vitest run", "test-unit": "vitest run", "test-unit-coverage": "vitest run --coverage", "test-unit-bun": "bun --bun run vitest run", "test-unit-edge": "vitest run --environment edge-runtime", "test-unit-browser": "vitest run --browser", "test-unit-cloudflare": "vitest run --config ./vitest.cloudflare.config.ts", "test-unit-watch": "vitest --ui --api 4414", "typecheck": "tsc --project tsconfig.json --noEmit", "typecheck-build": "tsc --project tsconfig.build.json --noEmit", "ci-coverage-upload": "../../.github/scripts/download/codecov -F httpx-stable-hash-unit --dir ./coverage" }, "dependencies": { "@httpx/plain-object": "^2.1.4" }, "devDependencies": { "@arethetypeswrong/cli": "0.18.2", "@belgattitude/eslint-config-bases": "8.4.0", "@httpx/devtools-vitest": "^0.0.2", "@size-limit/file": "11.2.0", "@size-limit/webpack": "11.2.0", "@tanstack/query-core": "5.90.10", "browserslist": "4.28.0", "browserslist-to-esbuild": "2.1.1", "cross-env": "10.1.0", "es-check": "9.4.5", "esbuild": "0.27.0", "eslint": "8.57.1", "npm-run-all2": "8.0.4", "prettier": "3.6.2", "publint": "0.3.15", "rimraf": "6.1.2", "size-limit": "11.2.0", "stable-hash": "0.0.6", "stable-hash-x": "0.2.0", "tsup": "8.5.1", "typedoc": "0.28.14", "typedoc-plugin-markdown": "4.9.0", "typescript": "5.9.3", "vitest": "4.0.14", "webpack": "5.103.0" }, "engines": { "node": ">=20.9.0" }, "publishConfig": { "directory": "_release/package" } }