Skip to content
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: 0 additions & 2 deletions .changeset/add-claude-config.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/add-codeowners.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/add-shared-workflow-triggers.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/adopt-team-dev-tooling.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/codegen-from-repo-root.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/codegen-script-typescript.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/commit-generated-content.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/harden-legacy-deploy-workflows.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/initial-rename.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/migration-cjs-guidance.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/raise-minimum-release-age.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/repo-restructure-monorepo.md

This file was deleted.

22 changes: 22 additions & 0 deletions packages/meta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# @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.
2 changes: 1 addition & 1 deletion packages/meta/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polygonlabs/meta",
"version": "0.0.0",
"version": "1.0.0",
"description": "Polygon contract addresses and ABIs as typed `as const` TypeScript modules, with raw JSON also available",
"repository": {
"type": "git",
Expand Down