Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jobs:
run: |
bash ./bin/check-release-environment
env:

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dist
dist-deno
/*.tgz
.idea/
.eslintcache

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
".": "0.1.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
40 changes: 40 additions & 0 deletions scripts/fast-format
Original file line number Diff line number Diff line change
@@ -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 <file-with-paths> [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
6 changes: 4 additions & 2 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/internal/to-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0'; // x-release-please-version
export const VERSION = '0.1.1'; // x-release-please-version
4 changes: 2 additions & 2 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down