Skip to content

Commit e540572

Browse files
release: 1.5.1 (#64)
* chore: add package to package.json * chore(client): qualify global Blob * chore: update CI script * chore(internal): update global Error reference * chore: ci build action * fix: coerce nullable values to undefined * chore: do not install brew dependencies in ./scripts/bootstrap by default * perf: faster formatting * chore(internal): remove deprecated `compilerOptions.baseUrl` from tsconfig.json This allows sdks to be built using tsgo - see microsoft/typescript-go#474 * chore(internal): fix incremental formatting in some cases * chore(internal): codegen related update * chore(internal): ignore .eslintcache * release: 1.5.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 585ab90 commit e540572

14 files changed

Lines changed: 96 additions & 18 deletions

.eslintcache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/jest.config.ts":"1","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/api-promise.ts":"2","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/client.ts":"3","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/api-promise.ts":"4","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/error.ts":"5","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/resource.ts":"6","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/pagination.ts":"7","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/uploads.ts":"8","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/error.ts":"9","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/detect-platform.ts":"10","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/builtin-types.ts":"11","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/errors.ts":"12","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/index.ts":"13","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/headers.ts":"14","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/parse.ts":"15","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/request-options.ts":"16","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/shim-types.ts":"17","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/shims.ts":"18","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/to-file.ts":"19","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/types.ts":"20","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/uploads.ts":"21","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/base64.ts":"22","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/bytes.ts":"23","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/env.ts":"24","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/log.ts":"25","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/sleep.ts":"26","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/path.ts":"27","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/uuid.ts":"28","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/values.ts":"29","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils.ts":"30","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/pagination.ts":"31","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resource.ts":"32","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resources/beta.ts":"33","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resources/index.ts":"34","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resources.ts":"35","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resources/workbooks.ts":"36","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/uploads.ts":"37","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/version.ts":"38","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/api-resources/beta.test.ts":"39","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/api-resources/workbooks.test.ts":"40","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/base64.test.ts":"41","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/buildHeaders.test.ts":"42","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/form.test.ts":"43","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/index.test.ts":"44","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/stringifyQuery.test.ts":"45","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/path.test.ts":"46","/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/uploads.test.ts":"47"},{"size":604,"mtime":1758944084747,"results":"48","hashOfConfig":"49"},{"size":92,"mtime":1758944096231},{"size":28000,"mtime":1758944096231},{"size":3112,"mtime":1758944096231},{"size":3971,"mtime":1758944096231},{"size":255,"mtime":1758944084835,"results":"50","hashOfConfig":"49"},{"size":4226,"mtime":1758944096231},{"size":119,"mtime":1758944084759,"results":"51","hashOfConfig":"49"},{"size":80,"mtime":1758944096231},{"size":6407,"mtime":1758944096231},{"size":2917,"mtime":1758944096231},{"size":1187,"mtime":1758944096231},{"size":614,"mtime":1758944096231},{"size":3026,"mtime":1758944096231},{"size":1494,"mtime":1758944096231},{"size":2473,"mtime":1758944096231},{"size":929,"mtime":1758944096231},{"size":3522,"mtime":1758944096231},{"size":5211,"mtime":1758944096231},{"size":6352,"mtime":1758944096231},{"size":6726,"mtime":1758944084763,"results":"52","hashOfConfig":"49"},{"size":1263,"mtime":1758944084819,"results":"53","hashOfConfig":"49"},{"size":831,"mtime":1758944084767,"results":"54","hashOfConfig":"49"},{"size":612,"mtime":1758944084823,"results":"55","hashOfConfig":"49"},{"size":3098,"mtime":1758944096231},{"size":182,"mtime":1758944084823,"results":"56","hashOfConfig":"49"},{"size":3203,"mtime":1758944084767,"results":"57","hashOfConfig":"49"},{"size":601,"mtime":1758944096231},{"size":3116,"mtime":1758944084819,"results":"58","hashOfConfig":"49"},{"size":271,"mtime":1758944084819,"results":"59","hashOfConfig":"49"},{"size":90,"mtime":1758944096231},{"size":86,"mtime":1758944096231},{"size":5854,"mtime":1758944096231},{"size":671,"mtime":1758944096231},{"size":35,"mtime":1758944084767,"results":"60","hashOfConfig":"49"},{"size":24743,"mtime":1758944096231},{"size":84,"mtime":1758944096231},{"size":59,"mtime":1758944096231},{"size":2119,"mtime":1758944096231},{"size":5261,"mtime":1758944096231},{"size":2066,"mtime":1758944084771,"results":"61","hashOfConfig":"62"},{"size":2186,"mtime":1758944084771,"results":"63","hashOfConfig":"62"},{"size":1896,"mtime":1758944084771,"results":"64","hashOfConfig":"62"},{"size":22642,"mtime":1758944096231},{"size":917,"mtime":1758944096231},{"size":17594,"mtime":1758944084771,"results":"65","hashOfConfig":"62"},{"size":3486,"mtime":1758944084771,"results":"66","hashOfConfig":"62"},{"filePath":"67","messages":"68","suppressedMessages":"69","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1usyjs",{"filePath":"70","messages":"71","suppressedMessages":"72","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","suppressedMessages":"75","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","suppressedMessages":"78","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","suppressedMessages":"81","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","suppressedMessages":"84","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"85","messages":"86","suppressedMessages":"87","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","suppressedMessages":"93","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","suppressedMessages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1djkjit",{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","suppressedMessages":"114","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"115","messages":"116","suppressedMessages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/jest.config.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/resource.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/core/uploads.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/uploads.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/base64.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/bytes.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/env.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/sleep.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/path.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils/values.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/internal/utils.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/src/resources.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/base64.test.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/buildHeaders.test.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/form.test.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/path.test.ts",[],[],"/home/tempuser-cui0vv/run/codegen-output/grid/spreadsheet-api-typescript/tests/uploads.test.ts",[],[]]

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.GRID_NPM_TOKEN || secrets.NPM_TOKEN }}
22+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ dist
77
dist-deno
88
/*.tgz
99
.idea/
10+
.eslintcache
1011

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.5.0"
2+
".": "1.5.1"
33
}

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

3+
## 1.5.1 (2025-09-27)
4+
5+
Full Changelog: [v1.5.0...v1.5.1](https://github.com/GRID-is/api-sdk-ts/compare/v1.5.0...v1.5.1)
6+
7+
### Bug Fixes
8+
9+
* coerce nullable values to undefined ([8ebd06f](https://github.com/GRID-is/api-sdk-ts/commit/8ebd06f8d85194fd48b7c648a38f272c03c763e1))
10+
11+
12+
### Performance Improvements
13+
14+
* faster formatting ([be603eb](https://github.com/GRID-is/api-sdk-ts/commit/be603eb81eaaa959985e5df26db55fbc3130ce99))
15+
16+
17+
### Chores
18+
19+
* add package to package.json ([fe50b31](https://github.com/GRID-is/api-sdk-ts/commit/fe50b318ab6b138d2ac9607977afae8adbf1c861))
20+
* ci build action ([93250e4](https://github.com/GRID-is/api-sdk-ts/commit/93250e47f514e696a213cb43f456169d8f27fc13))
21+
* **client:** qualify global Blob ([5148d22](https://github.com/GRID-is/api-sdk-ts/commit/5148d221fb698533a43ab7b4cb1f4b35bf50c018))
22+
* do not install brew dependencies in ./scripts/bootstrap by default ([144090d](https://github.com/GRID-is/api-sdk-ts/commit/144090d772019cfd2e3575d9d043c766ed490ff9))
23+
* **internal:** codegen related update ([f375d5e](https://github.com/GRID-is/api-sdk-ts/commit/f375d5e9e5827ebd1c4e19894c5060087c44855c))
24+
* **internal:** fix incremental formatting in some cases ([e37a639](https://github.com/GRID-is/api-sdk-ts/commit/e37a6390227ebaaab5e2f87431765fd407964c9a))
25+
* **internal:** ignore .eslintcache ([a328fbb](https://github.com/GRID-is/api-sdk-ts/commit/a328fbb3bffe903c56eda152a22cda189a90f7be))
26+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([c86c02a](https://github.com/GRID-is/api-sdk-ts/commit/c86c02a769f12ef06a6bd819317b62731f5f2b05))
27+
* **internal:** update global Error reference ([d64d640](https://github.com/GRID-is/api-sdk-ts/commit/d64d640a31b42e6556cc5aac617d7b72aad46d36))
28+
* update CI script ([5183ecd](https://github.com/GRID-is/api-sdk-ts/commit/5183ecd1d0416f1a17fd419b81c0c0abfd338f7b))
29+
330
## 1.5.0 (2025-08-20)
431

532
Full Changelog: [v1.4.1...v1.5.0](https://github.com/GRID-is/api-sdk-ts/compare/v1.4.1...v1.5.0)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grid-is/api",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "The official TypeScript library for the Grid API",
55
"author": "Grid <info@grid.is>",
66
"types": "dist/index.d.ts",
@@ -46,6 +46,7 @@
4646
"ts-node": "^10.5.0",
4747
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
4848
"tsconfig-paths": "^4.0.0",
49+
"tslib": "^2.8.1",
4950
"typescript": "5.8.3",
5051
"typescript-eslint": "8.31.1"
5152
},

scripts/bootstrap

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
7+
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
88
brew bundle check >/dev/null 2>&1 || {
9-
echo "==> Installing Homebrew dependencies…"
10-
brew bundle
9+
echo -n "==> Install Homebrew dependencies? (y/N): "
10+
read -r response
11+
case "$response" in
12+
[yY][eE][sS]|[yY])
13+
brew bundle
14+
;;
15+
*)
16+
;;
17+
esac
18+
echo
1119
}
1220
fi
1321

1422
echo "==> Installing Node dependencies…"
1523

1624
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
1725

18-
$PACKAGE_MANAGER install
26+
$PACKAGE_MANAGER install "$@"

scripts/fast-format

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
echo "Script started with $# arguments"
6+
echo "Arguments: $*"
7+
echo "Script location: $(dirname "$0")"
8+
9+
cd "$(dirname "$0")/.."
10+
echo "Changed to directory: $(pwd)"
11+
12+
if [ $# -eq 0 ]; then
13+
echo "Usage: $0 <file-with-paths> [additional-formatter-args...]"
14+
echo "The file should contain one file path per line"
15+
exit 1
16+
fi
17+
18+
FILE_LIST="$1"
19+
20+
echo "Looking for file: $FILE_LIST"
21+
22+
if [ ! -f "$FILE_LIST" ]; then
23+
echo "Error: File '$FILE_LIST' not found"
24+
exit 1
25+
fi
26+
27+
echo "==> Running eslint --fix"
28+
ESLINT_FILES="$(grep '\.ts$' "$FILE_LIST" || true)"
29+
if ! [ -z "$ESLINT_FILES" ]; then
30+
echo "$ESLINT_FILES" | xargs ./node_modules/.bin/eslint --cache --fix
31+
fi
32+
33+
echo "==> Running prettier --write"
34+
# format things eslint didn't
35+
PRETTIER_FILES="$(grep '\.\(js\|json\)$' "$FILE_LIST" || true)"
36+
if ! [ -z "$PRETTIER_FILES" ]; then
37+
echo "$PRETTIER_FILES" | xargs ./node_modules/.bin/prettier \
38+
--write --cache --cache-strategy metadata --no-error-on-unmatched-pattern \
39+
'!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'
40+
fi

scripts/utils/upload-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar -cz dist | curl -v -X PUT \
15+
UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
1616
-H "Content-Type: application/gzip" \
1717
--data-binary @- "$SIGNED_URL" 2>&1)
1818

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export class Grid {
392392
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
393393
const headersTime = Date.now();
394394

395-
if (response instanceof Error) {
395+
if (response instanceof globalThis.Error) {
396396
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
397397
if (options.signal?.aborted) {
398398
throw new Errors.APIUserAbortError();
@@ -719,7 +719,7 @@ export class Grid {
719719
// Preserve legacy string encoding behavior for now
720720
headers.values.has('content-type')) ||
721721
// `Blob` is superset of `File`
722-
body instanceof Blob ||
722+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
723723
// `FormData` -> `multipart/form-data`
724724
body instanceof FormData ||
725725
// `URLSearchParams` -> `application/x-www-form-urlencoded`

0 commit comments

Comments
 (0)