You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make bare-label resolution configurable, default ENS
Bare labels (no dot) are ambiguous now that GNS (.gwei) and WNS (.wei) both
accept them and can point to different owners. Route them to a configurable
`bareLabel` system instead of guessing.
- New `bareLabel` option ('ens' | 'gns' | 'wns'), default 'ens'
- detectSystem(input, bareLabel?) takes an optional second arg
- Behavior change from 0.2.0: bare labels resolved as .gwei; now default to
ENS (which has no bare-label namespace, so resolve('alice') is null unless
bareLabel is set to 'gns'/'wns' or an explicit suffix is used)
- Docs, tests, changeset
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Make bare-label resolution configurable and default it to ENS.
6
+
7
+
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.
8
+
9
+
- New `bareLabel` option (`'ens' | 'gns' | 'wns'`), defaulting to `'ens'`. `detectSystem(input, bareLabel?)` takes an optional second argument.
10
+
-**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`).
0 commit comments