952354c1dd
* Improve performances of `lexParseJsonBytes` function * tidy * tidy * Add test for repeated keys; fix import order in bench file Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/3cb30e99-4d11-4396-82a3-79c2eb5ca6cf Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * Fix `lexParseJsonBytes` strict mode to match `lexParse` behavior (#4843) * Initial plan * Fix lexParseJsonBytes strict mode to match lexParse behavior - Fix parseNull/parseTrue/parseFalse to throw SyntaxError with 'Unexpected token' (matching JSON.parse) - Fix parseNumber to compute full value before validating, throw TypeError('Invalid non-integer number: ${value}') in strict mode (matching lexParse) - Fix parseObject to throw TypeError (not SyntaxError) for invalid $bytes, $link, and blob objects - Use parseTypedBlobRef instead of isBlobRef for blob validation - Add $type empty string check and improve $type error messages - Update incorrect test: 1e10 is a safe integer and should not throw in strict mode - Add comprehensive strict vs non-strict mode parity tests for lexParseJsonBytes vs lexParse Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647 Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * Improve code comment in parseNumber Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647 Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com> * tidy * tidy * tests * tidy --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>
82 lines
2.8 KiB
JSON
82 lines
2.8 KiB
JSON
{
|
|
"name": "atp",
|
|
"version": "0.0.1",
|
|
"repository": "git@github.com:bluesky-social/atproto.git",
|
|
"author": "Bluesky Social PBC <hello@blueskyweb.xyz>",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=18.7.0"
|
|
},
|
|
"packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81",
|
|
"scripts": {
|
|
"lint:fix": "pnpm lint --fix",
|
|
"lint": "NODE_OPTIONS=--max_old_space_size=4096 eslint . --ext .ts,.js,.tsx,.jsx",
|
|
"style:fix": "prettier --write .",
|
|
"style": "prettier --check .",
|
|
"verify": "pnpm --stream '/^verify:.+$/'",
|
|
"verify:style": "pnpm run style",
|
|
"verify:lint": "pnpm lint",
|
|
"verify:types": "tsc --build tsconfig.json",
|
|
"format": "pnpm lint:fix && pnpm style:fix",
|
|
"precodegen": "pnpm run --recursive --stream --filter '@atproto/lex-cli...' --filter '@atproto/lex...' build --force",
|
|
"codegen": "pnpm run --sort --recursive --stream --parallel codegen",
|
|
"build": "pnpm run --sort --recursive --stream build",
|
|
"i18n": "pnpm run --parallel i18n:extract",
|
|
"dev": "NODE_ENV=development pnpm run --recursive --parallel --stream '/^(dev|dev:.+)$/'",
|
|
"dev:tsc": "tsc --build tsconfig.json --preserveWatchOutput --watch",
|
|
"test": "LOG_ENABLED=false ./packages/dev-infra/with-test-redis-and-db.sh pnpm test --stream --recursive",
|
|
"test:withFlags": "pnpm run test --",
|
|
"bench": "vitest bench --run",
|
|
"changeset": "changeset",
|
|
"release": "pnpm build && changeset publish",
|
|
"version-packages": "changeset version && git add ."
|
|
},
|
|
"devDependencies": {
|
|
"@atproto/dev-env": "workspace:^",
|
|
"@changesets/changelog-github": "^0.5.1",
|
|
"@changesets/cli": "^2.29.7",
|
|
"@swc/core": "^1.3.42",
|
|
"@swc/jest": "^0.2.24",
|
|
"@types/jest": "^28.1.4",
|
|
"@types/node": "^18.19.67",
|
|
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
"@typescript-eslint/parser": "^7.4.0",
|
|
"@vitest/coverage-v8": "4.0.16",
|
|
"dotenv": "^16.0.3",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-n": "^17.15.0",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"jest": "^28.1.2",
|
|
"node-gyp": "^9.3.1",
|
|
"pino-pretty": "^9.1.0",
|
|
"prettier": "^3.2.5",
|
|
"prettier-config-standard": "^7.0.0",
|
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^4.0.16"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"cookie": "^0.7.2"
|
|
}
|
|
},
|
|
"workspace": [
|
|
"packages/*",
|
|
"packages/lex/*",
|
|
"packages/oauth/*",
|
|
"packages/internal/*"
|
|
],
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*",
|
|
"packages/lex/*",
|
|
"packages/oauth/*",
|
|
"packages/internal/*"
|
|
]
|
|
}
|
|
}
|