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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/jstz-client-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -41,7 +41,7 @@ jobs:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/jstz-client-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/publish-npm.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ jobs:
if: github.repository == 'jstz-dev/jstz-client' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Check release environment
run: |
bash ./bin/check-release-environment
env:
NPM_TOKEN: ${{ secrets.JSTZ_NPM_TOKEN || secrets.NPM_TOKEN }}

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.1-alpha.5"
".": "0.2.0-alpha.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: 12
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/trilitech%2Fjstz-client-392d697d9913f014559817cca2311d53805292c452984973414f2e0de864ac43.yml
openapi_spec_hash: 375a267f5d9eb4822fa01be70e2c3c77
config_hash: 9090ae7265d8d2ceb28c317a75580425
config_hash: 0d2516b7b776a667e5f248a131f67a9d
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 0.2.0-alpha.1 (2026-01-17)

Full Changelog: [v0.1.1-alpha.5...v0.2.0-alpha.1](https://github.com/jstz-dev/jstz-client/compare/v0.1.1-alpha.5...v0.2.0-alpha.1)

### Features

* **api:** api update ([fa68276](https://github.com/jstz-dev/jstz-client/commit/fa68276ce83012760d9243baa6f1c967e122e8d8))
* **api:** api update ([14ca32d](https://github.com/jstz-dev/jstz-client/commit/14ca32d2c341af71b25f67ec4196696505e48385))


### Bug Fixes

* **mcp:** correct code tool API endpoint ([569a473](https://github.com/jstz-dev/jstz-client/commit/569a4734e537ca667ab05a42a0b3085ae36bb3a5))
* **mcp:** return correct lines on typescript errors ([7e79644](https://github.com/jstz-dev/jstz-client/commit/7e796445736219c33a67e8385456425a19d50271))


### Chores

* break long lines in snippets into multiline ([c307650](https://github.com/jstz-dev/jstz-client/commit/c30765039a12b40c1a80e134bcb9cd07c89f5044))
* **internal:** codegen related update ([c6c4cb1](https://github.com/jstz-dev/jstz-client/commit/c6c4cb1428d03d8ea8738624d2201a6fc25b2651))
* **internal:** codegen related update ([ca343dd](https://github.com/jstz-dev/jstz-client/commit/ca343dd000fd64d3fa1b249b82bfa835ae1e6587))
* **internal:** codegen related update ([ea8d370](https://github.com/jstz-dev/jstz-client/commit/ea8d3700866d86ee9a3051c37b9ca3e561739410))
* **internal:** update `actions/checkout` version ([d3724f4](https://github.com/jstz-dev/jstz-client/commit/d3724f4f96a1f1734eb22203d9247d249124d484))
* **internal:** upgrade babel, qs, js-yaml ([f5c4762](https://github.com/jstz-dev/jstz-client/commit/f5c4762b613fa38676021df65c7cfa3b58b2990a))

## 0.1.1-alpha.5 (2025-11-19)

Full Changelog: [v0.1.1-alpha.5...v0.1.1-alpha.5](https://github.com/jstz-dev/jstz-client/compare/v0.1.1-alpha.5...v0.1.1-alpha.5)
Expand Down
14 changes: 0 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,3 @@ To format and fix all lint issues automatically:
```sh
$ yarn fix
```

## Publishing and releases

Changes made to this repository via the automated release PR pipeline should publish to npm automatically. If
the changes aren't made through the automated pipeline, you may want to make releases manually.

### Publish with a GitHub workflow

You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/jstz-dev/jstz-client/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

If you need to manually release a package, you can run the `bin/publish-npm` script with an `NPM_TOKEN` set on
the environment.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Jstz
Copyright 2026 Jstz

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ The REST API documentation can be found on [jstz.tezos.com](https://jstz.tezos.c
## Installation

```sh
npm install @jstz-dev/jstz-client
npm install git+ssh://git@github.com:jstz-dev/jstz-client.git
```

> [!NOTE]
> Once this package is [published to npm](https://www.stainless.com/docs/guides/publish), this will become: `npm install @jstz-dev/jstz-client`

## Usage

The full API of this library can be found in [api.md](api.md).
Expand Down
4 changes: 0 additions & 4 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

errors=()

if [ -z "${NPM_TOKEN}" ]; then
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

lenErrors=${#errors[@]}

if [[ lenErrors -gt 0 ]]; then
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": "@jstz-dev/jstz-client",
"version": "0.1.1-alpha.5",
"version": "0.2.0-alpha.1",
"description": "The official TypeScript library for the Jstz API",
"author": "Jstz <contact@trili.tech>",
"types": "dist/index.d.ts",
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.1-alpha.5'; // x-release-please-version
export const VERSION = '0.2.0-alpha.1'; // x-release-please-version
24 changes: 20 additions & 4 deletions tests/api-resources/operations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe('resource operations', () => {

test('hash: only required params', async () => {
const responsePromise = client.operations.hash({
content: { _type: 'DeployFunction', accountCredit: 0, functionCode: 'functionCode' },
content: {
_type: 'DeployFunction',
accountCredit: 0,
functionCode: 'functionCode',
},
nonce: 0,
publicKey: 'edpkukK9ecWxib28zi52nvbXTdsYt8rYcvmt5bdH8KjipWXm8sH3Qi',
});
Expand All @@ -41,7 +45,11 @@ describe('resource operations', () => {

test('hash: required and optional params', async () => {
const response = await client.operations.hash({
content: { _type: 'DeployFunction', accountCredit: 0, functionCode: 'functionCode' },
content: {
_type: 'DeployFunction',
accountCredit: 0,
functionCode: 'functionCode',
},
nonce: 0,
publicKey: 'edpkukK9ecWxib28zi52nvbXTdsYt8rYcvmt5bdH8KjipWXm8sH3Qi',
});
Expand All @@ -50,7 +58,11 @@ describe('resource operations', () => {
test('inject: only required params', async () => {
const responsePromise = client.operations.inject({
inner: {
content: { _type: 'DeployFunction', accountCredit: 0, functionCode: 'functionCode' },
content: {
_type: 'DeployFunction',
accountCredit: 0,
functionCode: 'functionCode',
},
nonce: 0,
publicKey: 'edpkukK9ecWxib28zi52nvbXTdsYt8rYcvmt5bdH8KjipWXm8sH3Qi',
},
Expand All @@ -69,7 +81,11 @@ describe('resource operations', () => {
test('inject: required and optional params', async () => {
const response = await client.operations.inject({
inner: {
content: { _type: 'DeployFunction', accountCredit: 0, functionCode: 'functionCode' },
content: {
_type: 'DeployFunction',
accountCredit: 0,
functionCode: 'functionCode',
},
nonce: 0,
publicKey: 'edpkukK9ecWxib28zi52nvbXTdsYt8rYcvmt5bdH8KjipWXm8sH3Qi',
},
Expand Down
10 changes: 8 additions & 2 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@

describe('defaultQuery', () => {
test('with null query params given', () => {
const client = new Jstz({ baseURL: 'http://localhost:5000/', defaultQuery: { apiVersion: 'foo' } });
const client = new Jstz({
baseURL: 'http://localhost:5000/',
defaultQuery: { apiVersion: 'foo' },
});
expect(client.buildURL('/foo', null)).toEqual('http://localhost:5000/foo?apiVersion=foo');
});

Expand All @@ -64,7 +67,10 @@
});

test('overriding with `undefined`', () => {
const client = new Jstz({ baseURL: 'http://localhost:5000/', defaultQuery: { hello: 'world' } });
const client = new Jstz({
baseURL: 'http://localhost:5000/',
defaultQuery: { hello: 'world' },
});
expect(client.buildURL('/foo', { hello: undefined })).toEqual('http://localhost:5000/foo');
});
});
Expand Down Expand Up @@ -235,7 +241,7 @@
let count = 0;
const testFetch = async (url: RequestInfo, { signal }: RequestInit = {}): Promise<Response> => {
if (count++ === 0) {
return new Promise((resolve, reject) =>

Check failure on line 244 in tests/index.test.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `(resolve,·reject)·=>⏎·········` with `⏎··········(resolve,·reject)·=>`
signal?.addEventListener('abort', () => reject(new Error('timed out'))),
);
}
Expand Down
Loading
Loading