Skip to content

Commit 98dc916

Browse files
Version Packages
1 parent b30369f commit 98dc916

File tree

13 files changed

+78
-59
lines changed

13 files changed

+78
-59
lines changed

.changeset/breezy-heads-crash.md

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

.changeset/small-taxes-heal.md

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

.changeset/witty-plums-read.md

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

apps/wagmi-demo/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# wagmi-inapp
22

3+
## 0.0.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`ceba683`](https://github.com/thirdweb-dev/js/commit/ceba6835dd60896efc34fe1495a1812c0cc39db7), [`b30369f`](https://github.com/thirdweb-dev/js/commit/b30369f3cc0bbceed3470b6c905551a5c930f08f)]:
8+
- thirdweb@5.110.0
9+
- @thirdweb-dev/wagmi-adapter@0.2.168
10+
311
## 0.0.12
412

513
### Patch Changes

apps/wagmi-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wagmi-inapp",
33
"private": true,
4-
"version": "0.0.12",
4+
"version": "0.0.13",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

packages/api/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @thirdweb-dev/api
22

3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- [#8290](https://github.com/thirdweb-dev/js/pull/8290) [`f2121e9`](https://github.com/thirdweb-dev/js/commit/f2121e9519719ef809986c919acc5069b5b7ce74) Thanks [@0xFirekeeper](https://github.com/0xFirekeeper)! - added support for userId across wallet apis
8+
39
## 0.1.0
410

511
### Minor Changes

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/api",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

packages/nebula/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @thirdweb-dev/nebula
22

3+
## 0.2.71
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`ceba683`](https://github.com/thirdweb-dev/js/commit/ceba6835dd60896efc34fe1495a1812c0cc39db7), [`b30369f`](https://github.com/thirdweb-dev/js/commit/b30369f3cc0bbceed3470b6c905551a5c930f08f)]:
8+
- thirdweb@5.110.0
9+
310
## 0.2.70
411

512
### Patch Changes

packages/nebula/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@
5757
"type": "module",
5858
"types": "./dist/types/exports/thirdweb.d.ts",
5959
"typings": "./dist/types/exports/thirdweb.d.ts",
60-
"version": "0.2.70"
60+
"version": "0.2.71"
6161
}

packages/thirdweb/CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# thirdweb
22

3+
## 5.110.0
4+
5+
### Minor Changes
6+
7+
- [#8289](https://github.com/thirdweb-dev/js/pull/8289) [`b30369f`](https://github.com/thirdweb-dev/js/commit/b30369f3cc0bbceed3470b6c905551a5c930f08f) Thanks [@jnsdls](https://github.com/jnsdls)! - ### `getContractMetadata()` now returns a record with `unknown` values instead of `any`.
8+
9+
before:
10+
11+
```ts
12+
const metadata = await getContractMetadata({ contract });
13+
metadata; // Record<string, any>
14+
metadata.name; // string
15+
metadata.symbol; // string
16+
```
17+
18+
after:
19+
20+
```ts
21+
const metadata = await getContractMetadata({ contract });
22+
metadata; // Record<string, unknown>
23+
metadata.name; // string | null
24+
metadata.symbol; // string | null
25+
```
26+
27+
Metadata is not (and was never) strictly defined outside of `name` and `symbol` and may contain any type of data in the record.
28+
This is not a runtime change but it may break type inference in existing apps that relied on the previous return type.
29+
30+
**Recommended fix:**
31+
You _should_ type-guard any key you access from "metadata".
32+
33+
```ts
34+
const metadata = await getContractMetadata({ contract });
35+
if ("foo" in metadata && typeof metadata.foo === "string") {
36+
metadata.foo; // string
37+
}
38+
```
39+
40+
**Quick fix:**
41+
If adding type assertions is not something you can do in the short term you can also assert the type directly.
42+
_This is as "unsafe" as the type was before._
43+
44+
```ts
45+
const metadata = await getContractMetadata({ contract });
46+
const foo = metadata.foo as string;
47+
```
48+
49+
### Patch Changes
50+
51+
- [#8280](https://github.com/thirdweb-dev/js/pull/8280) [`ceba683`](https://github.com/thirdweb-dev/js/commit/ceba6835dd60896efc34fe1495a1812c0cc39db7) Thanks [@MananTank](https://github.com/MananTank)! - Fix process not defined error when using "thirdweb/contract" import in Vite
52+
353
## 5.109.1
454

555
### Patch Changes

0 commit comments

Comments
 (0)