Skip to content

changesets: Release / Deploy#183

Merged
py-zoid merged 1 commit into
masterfrom
changeset-release/master
May 15, 2026
Merged

changesets: Release / Deploy#183
py-zoid merged 1 commit into
masterfrom
changeset-release/master

Conversation

@0xpolygon-changesets-release-bot
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@polygonlabs/meta@1.0.0

Major Changes

  • 0c1d7e5: Initial release of @polygonlabs/meta, replacing the legacy @maticnetwork/meta@2.x package.

    What's new

    • Per-contract typed deep imports. import { abi } from '@polygonlabs/meta/abi/<chain>/<network>/<type>/<Contract>' pulls exactly one ABI; the rest of the package is tree-shaken at bundle time.
    • as const literal ABI types. Each ABI is exported as a literal tuple so viem, wagmi, and abitype can extract function names, argument types, and return types at the call site. Without as const the type widens to { name: string }[] and consumer-side type inference disappears entirely — the typed-ABI value proposition exists only because of as const.
    • Typed network metadata under /info/<chain>/<network> and /info/networks, also as const.
    • Raw JSON access preserved. The ./network/* subpath export keeps the same path scheme as @maticnetwork/meta@2.x, so consumers who only want JSON migrate by changing the package name.
    • Provenance-stamped publishes via npm OIDC trusted publishing, driven by changesets-on-merge.

    Breaking changes vs @maticnetwork/meta@2.x

    • Package renamed: @maticnetwork/meta@polygonlabs/meta.
    • ESM-only. require() is no longer supported. Consumers must be ESM and on Node ≥ 24.
    • The Network class is gone. Replace new Network(chain, version).abi(name) with the typed deep imports under ./abi/<chain>/<network>/<type>/<Contract> — same data, fully typed, sync, tree-shakable.
    • Mumbai testnet is gone (already removed upstream); use Amoy.

    The HTTP endpoint at static.polygon.technology is unchanged. See MIGRATION.md for full before/after import examples.

@0xpolygon-changesets-release-bot 0xpolygon-changesets-release-bot Bot requested a review from a team as a code owner May 15, 2026 07:39
@sonarqubecloud
Copy link
Copy Markdown

@py-zoid py-zoid merged commit 395a848 into master May 15, 2026
8 checks passed
@py-zoid py-zoid deleted the changeset-release/master branch May 15, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant