diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b81cabe..02820d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,7 +35,7 @@ jobs: publish: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' }} needs: [quality] steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0966d13..4b80088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,34 +1,36 @@ -## [0.7.7](https://github.com/starknet-io/types-js/compare/v0.7.6...v0.7.7) (2024-06-10) +## [0.7.8-alpha.1](https://github.com/starknet-io/types-js/compare/v0.7.7...v0.7.8-alpha.1) (2024-11-19) ### Bug Fixes -* export all from abi ([#16](https://github.com/starknet-io/types-js/issues/16)) ([8dcc198](https://github.com/starknet-io/types-js/commit/8dcc198526d6561ce967407aa2ca68e378e2c300)) +* new export, lint ([#25](https://github.com/starknet-io/types-js/issues/25)) ([4cfe411](https://github.com/starknet-io/types-js/commit/4cfe411d7ee117c9e3dfaa79807c9a62a1251a6f)) -## [0.7.6](https://github.com/starknet-io/types-js/compare/v0.7.5...v0.7.6) (2024-06-07) +## [0.7.7](https://github.com/starknet-io/types-js/compare/v0.7.6...v0.7.7) (2024-06-10) + +### Bug Fixes +- export all from abi ([#16](https://github.com/starknet-io/types-js/issues/16)) ([8dcc198](https://github.com/starknet-io/types-js/commit/8dcc198526d6561ce967407aa2ca68e378e2c300)) + +## [0.7.6](https://github.com/starknet-io/types-js/compare/v0.7.5...v0.7.6) (2024-06-07) ### Bug Fixes -* simgflag ([#15](https://github.com/starknet-io/types-js/issues/15)) ([f3458b9](https://github.com/starknet-io/types-js/commit/f3458b9ae436e0fe61684f8bd3dd5ce09d70e45a)) +- simgflag ([#15](https://github.com/starknet-io/types-js/issues/15)) ([f3458b9](https://github.com/starknet-io/types-js/commit/f3458b9ae436e0fe61684f8bd3dd5ce09d70e45a)) ## [0.7.5](https://github.com/starknet-io/types-js/compare/v0.7.4...v0.7.5) (2024-06-05) - ### Bug Fixes -* export abi internals ([#11](https://github.com/starknet-io/types-js/issues/11)) ([d22b5de](https://github.com/starknet-io/types-js/commit/d22b5decb6847ad70738ba7ea60de01281760427)) +- export abi internals ([#11](https://github.com/starknet-io/types-js/issues/11)) ([d22b5de](https://github.com/starknet-io/types-js/commit/d22b5decb6847ad70738ba7ea60de01281760427)) ## [0.7.4](https://github.com/starknet-io/types-js/compare/v0.7.3...v0.7.4) (2024-06-04) - ### Bug Fixes -* readme ([#10](https://github.com/starknet-io/types-js/issues/10)) ([2636265](https://github.com/starknet-io/types-js/commit/2636265000a723ec39ff71a18ec70e19e4cfc0de)) +- readme ([#10](https://github.com/starknet-io/types-js/issues/10)) ([2636265](https://github.com/starknet-io/types-js/commit/2636265000a723ec39ff71a18ec70e19e4cfc0de)) ## [0.7.3](https://github.com/starknet-io/types-js/compare/v0.7.2...v0.7.3) (2024-06-04) - ### Bug Fixes -* spec update ([#7](https://github.com/starknet-io/types-js/issues/7)) ([5ec8208](https://github.com/starknet-io/types-js/commit/5ec8208f9e495f34472834e01458f4d3f97049d7)) +- spec update ([#7](https://github.com/starknet-io/types-js/issues/7)) ([5ec8208](https://github.com/starknet-io/types-js/commit/5ec8208f9e495f34472834e01458f4d3f97049d7)) diff --git a/README.md b/README.md index 05686bc..dd0fad7 100644 --- a/README.md +++ b/README.md @@ -17,22 +17,25 @@ npm i @starknet-io/types-js ## Types #### API [Starknet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/master/api) -```ts - // type import - import type { SomeApiType } from '@starknet-io/types-js' - // or entire namespace import - import { API } from '@starknet-io/types-js' + +```ts +// type import +import type { SomeApiType } from '@starknet-io/types-js'; +// or entire namespace import +import { API } from '@starknet-io/types-js'; ``` #### Wallet API [Wallet JSON RPC Specification](https://github.com/starkware-libs/starknet-specs/tree/48e77bf4aaf687388b40b8198e3105401941517a/wallet-api) -```ts - // type import - import type { SomeWalletApiType } from '@starknet-io/types-js' - // or entire namespace import - import { WALLET_API } from '@starknet-io/types-js' + +```ts +// type import +import type { SomeWalletApiType } from '@starknet-io/types-js'; +// or entire namespace import +import { WALLET_API } from '@starknet-io/types-js'; ``` ##### SNIP-12 [Hashing and signing typed structured data](https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-12.md) + - /src/wallet-api/typedData.ts ## Versioning (pending SPEC PR merge) diff --git a/package-lock.json b/package-lock.json index 7c7ec4d..22fee25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "starknet-types", - "version": "0.7.7", + "version": "0.7.8-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "starknet-types", - "version": "0.7.7", + "version": "0.7.8-alpha.1", "license": "MIT", "devDependencies": { "@semantic-release/changelog": "^6.0.3", diff --git a/package.json b/package.json index 6f5af25..b896196 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@starknet-io/types-js", - "version": "0.7.7", + "version": "0.7.8-alpha.1", "description": "Shared TypeScript definitions for Starknet projects", "homepage": "https://github.com/starknet-io/types-js", "keywords": [ @@ -13,7 +13,6 @@ "dapp" ], "license": "MIT", - "type": "module", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/tsconfig.base.json b/tsconfig.base.json index 001b59b..a0ddfe5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -27,7 +27,7 @@ "esModuleInterop": false, "allowSyntheticDefaultImports": false, "forceConsistentCasingInFileNames": true, - "verbatimModuleSyntax": true, + // "verbatimModuleSyntax": true, "importHelpers": false, // This is only used for build validation. Since we do not have `tslib` installed, this will fail if we accidentally make use of anything that'd require injection of helpers. // Language and environment