Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate IIFE build support #317

Merged
merged 1 commit into from
Feb 29, 2024
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

# Unreleased

- [`Deprecate`] IIFE build support

# 1.9.1 (2024-02-28)

- [`Fix`] Remove decimals field from `CurrentTokenOwnershipFields` gql fragement
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Install with your favorite package manager such as npm, yarn, or pnpm:
pnpm install @aptos-labs/ts-sdk
```

##### For use in a browser
##### For use in a browser (<= 1.9.1 version only)

You can add the SDK to your web application using a script tag:

Expand Down
12 changes: 1 addition & 11 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ const DEFAULT_CONFIG: Options = {
},
};

// Browser config, uses iife
const IIFE_CONFIG: MandatoryOptions = {
...DEFAULT_CONFIG,
format: "iife",
globalName: "aptosSDK",
outDir: "dist/browser",
platform: "browser",
splitting: false,
};

// Common.js config
const COMMON_CONFIG: MandatoryOptions = {
...DEFAULT_CONFIG,
Expand All @@ -55,4 +45,4 @@ const ESM_CONFIG: MandatoryOptions = {
platform: "node",
};

export default defineConfig([IIFE_CONFIG, COMMON_CONFIG, ESM_CONFIG]);
export default defineConfig([COMMON_CONFIG, ESM_CONFIG]);
Loading