diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index f9d8eb3..0d9da72 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -18,3 +18,4 @@ jobs: run: | bash ./bin/check-release-environment env: + diff --git a/.gitignore b/.gitignore index d98d51a..2412bb7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ dist dist-deno /*.tgz .idea/ +.eslintcache diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 466df71..a915e8c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.1.1" } diff --git a/.stats.yml b/.stats.yml index 9e1000d..47d7ed6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 25 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/legalesign%2Flegalesign-sdk-3bf301e758f245c1c30c849b8372902b9c1a4385050a04a0119effc4107dde07.yml openapi_spec_hash: 45411f5fe25671475b12a5a85a060ad9 -config_hash: b5c35e03bca977f2676cebbcb9fe1bc5 +config_hash: c63fae4d2f35d6499f5aaeb35acf8a3b diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b98ad3..b1ecfc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.1.1 (2025-10-07) + +Full Changelog: [v0.1.0...v0.1.1](https://github.com/legalesign/legalesign-rest-typescript/compare/v0.1.0...v0.1.1) + +### Performance Improvements + +* faster formatting ([b6ce6b7](https://github.com/legalesign/legalesign-rest-typescript/commit/b6ce6b72a306e1312b523eaf84924e929ceffbe0)) + + +### Chores + +* **internal:** codegen related update ([a125e18](https://github.com/legalesign/legalesign-rest-typescript/commit/a125e18daf08e71ed5e577ef5372cdc8160dbf51)) +* **internal:** fix incremental formatting in some cases ([1672f11](https://github.com/legalesign/legalesign-rest-typescript/commit/1672f11e2689f79ff272daf0c4914db3bad49cbf)) +* **internal:** ignore .eslintcache ([03da171](https://github.com/legalesign/legalesign-rest-typescript/commit/03da171ed45362e5121381b225fbe4aa14087fdb)) +* **internal:** remove .eslintcache ([1458400](https://github.com/legalesign/legalesign-rest-typescript/commit/1458400f7fe9a8f3efa106dfa8bb5ae678e45ac6)) +* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([260bcba](https://github.com/legalesign/legalesign-rest-typescript/commit/260bcbab23b2cc698919eef6a97ec6f91fbdf92e)) +* **internal:** use npm pack for build uploads ([883e2a6](https://github.com/legalesign/legalesign-rest-typescript/commit/883e2a6cc0562d64f85b9fa0ef1b13b9f4c090fb)) +* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the packageā€˜s public interface ([a93e99a](https://github.com/legalesign/legalesign-rest-typescript/commit/a93e99a1553b9d4af21f4405843e5190d5851c84)) + ## 0.1.0 (2025-09-23) Full Changelog: [v0.0.1...v0.1.0](https://github.com/legalesign/legalesign-rest-typescript/compare/v0.0.1...v0.1.0) diff --git a/package.json b/package.json index 6f9cc7d..9e7f83b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "legalesign-sdk", - "version": "0.1.0", + "version": "0.1.1", "description": "The official TypeScript library for the Legalesign SDK API", "author": "Legalesign SDK ", "types": "dist/index.d.ts", diff --git a/scripts/fast-format b/scripts/fast-format new file mode 100755 index 0000000..53721ac --- /dev/null +++ b/scripts/fast-format @@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +set -euo pipefail + +echo "Script started with $# arguments" +echo "Arguments: $*" +echo "Script location: $(dirname "$0")" + +cd "$(dirname "$0")/.." +echo "Changed to directory: $(pwd)" + +if [ $# -eq 0 ]; then + echo "Usage: $0 [additional-formatter-args...]" + echo "The file should contain one file path per line" + exit 1 +fi + +FILE_LIST="$1" + +echo "Looking for file: $FILE_LIST" + +if [ ! -f "$FILE_LIST" ]; then + echo "Error: File '$FILE_LIST' not found" + exit 1 +fi + +echo "==> Running eslint --fix" +ESLINT_FILES="$(grep '\.ts$' "$FILE_LIST" || true)" +if ! [ -z "$ESLINT_FILES" ]; then + echo "$ESLINT_FILES" | xargs ./node_modules/.bin/eslint --cache --fix +fi + +echo "==> Running prettier --write" +# format things eslint didn't +PRETTIER_FILES="$(grep '\.\(js\|json\)$' "$FILE_LIST" || true)" +if ! [ -z "$PRETTIER_FILES" ]; then + echo "$PRETTIER_FILES" | xargs ./node_modules/.bin/prettier \ + --write --cache --cache-strategy metadata --no-error-on-unmatched-pattern \ + '!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs' +fi diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index c9e5fb1..e11cfbf 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then exit 1 fi -UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \ +TARBALL=$(cd dist && npm pack --silent) + +UPLOAD_RESPONSE=$(curl -v -X PUT \ -H "Content-Type: application/gzip" \ - --data-binary @- "$SIGNED_URL" 2>&1) + --data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1) if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then echo -e "\033[32mUploaded build to Stainless storage.\033[0m" diff --git a/src/internal/to-file.ts b/src/internal/to-file.ts index 245e849..30eada3 100644 --- a/src/internal/to-file.ts +++ b/src/internal/to-file.ts @@ -73,7 +73,7 @@ export type ToFileInput = /** * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats - * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s + * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible * @param {Object=} options additional properties * @param {string=} options.type the MIME type of the content diff --git a/src/version.ts b/src/version.ts index 1baa228..b322647 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.0'; // x-release-please-version +export const VERSION = '0.1.1'; // x-release-please-version diff --git a/tsconfig.build.json b/tsconfig.build.json index 5509bdb..03a3295 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,8 +5,8 @@ "compilerOptions": { "rootDir": "./dist/src", "paths": { - "legalesign-sdk/*": ["dist/src/*"], - "legalesign-sdk": ["dist/src/index.ts"] + "legalesign-sdk/*": ["./dist/src/*"], + "legalesign-sdk": ["./dist/src/index.ts"] }, "noEmit": false, "declaration": true, diff --git a/tsconfig.json b/tsconfig.json index 210b658..cc43c72 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,10 +7,9 @@ "module": "commonjs", "moduleResolution": "node", "esModuleInterop": true, - "baseUrl": "./", "paths": { - "legalesign-sdk/*": ["src/*"], - "legalesign-sdk": ["src/index.ts"] + "legalesign-sdk/*": ["./src/*"], + "legalesign-sdk": ["./src/index.ts"] }, "noEmit": true,