Skip to content

Commit 4b28212

Browse files
authored
Merge pull request #3 from 1001-digital/changeset-release/main
Version Packages
2 parents 31364f6 + 05f56d8 commit 4b28212

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

.changeset/bare-label-system.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @1001-digital/ethereum-names
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- [`31364f6`](https://github.com/1001-digital/ethereum-names/commit/31364f6d682194fdbbe3481bb3df07efd0353347) Thanks [@jwahdatehagh](https://github.com/jwahdatehagh)! - Make bare-label resolution configurable and default it to ENS.
8+
9+
Bare labels (no dot, e.g. `alice`) are ambiguous now that both GNS (`.gwei`) and WNS (`.wei`) accept them — and they can point to different owners. Rather than silently guess, `detectSystem` and the client now route bare labels to a configurable `bareLabel` system.
10+
11+
- New `bareLabel` option (`'ens' | 'gns' | 'wns'`), defaulting to `'ens'`. `detectSystem(input, bareLabel?)` takes an optional second argument.
12+
- **Behavior change:** in `0.2.0` a bare label resolved as `.gwei`; it now resolves against ENS by default. Since ENS has no bare-label namespace, `resolve('alice')` returns `null` unless you set `bareLabel: 'gns'` or `'wns'` (or pass an explicit `alice.gwei` / `alice.wei`).
13+
314
## 0.2.0
415

516
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1001-digital/ethereum-names",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "One clean API to resolve Ethereum names across ENS, the Gwei Name Service (GNS), and the Wei Name Service (WNS), powered by viem.",
55
"type": "module",
66
"publishConfig": {

0 commit comments

Comments
 (0)