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
5 changes: 0 additions & 5 deletions .changeset/breezy-heads-crash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-taxes-heal.md

This file was deleted.

44 changes: 0 additions & 44 deletions .changeset/witty-plums-read.md

This file was deleted.

8 changes: 8 additions & 0 deletions apps/wagmi-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# wagmi-inapp

## 0.0.13

### Patch Changes

- Updated dependencies [[`ceba683`](https://github.com/thirdweb-dev/js/commit/ceba6835dd60896efc34fe1495a1812c0cc39db7), [`b30369f`](https://github.com/thirdweb-dev/js/commit/b30369f3cc0bbceed3470b6c905551a5c930f08f)]:
- thirdweb@5.110.0
- @thirdweb-dev/wagmi-adapter@0.2.168

## 0.0.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/wagmi-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wagmi-inapp",
"private": true,
"version": "0.0.12",
"version": "0.0.13",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 6 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @thirdweb-dev/api

## 0.1.1

### Patch Changes

- [#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

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/api",
"version": "0.1.0",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "git+https://github.com/thirdweb-dev/js.git#main"
Expand Down
7 changes: 7 additions & 0 deletions packages/nebula/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @thirdweb-dev/nebula

## 0.2.71

### Patch Changes

- Updated dependencies [[`ceba683`](https://github.com/thirdweb-dev/js/commit/ceba6835dd60896efc34fe1495a1812c0cc39db7), [`b30369f`](https://github.com/thirdweb-dev/js/commit/b30369f3cc0bbceed3470b6c905551a5c930f08f)]:
- thirdweb@5.110.0

## 0.2.70

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nebula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@
"type": "module",
"types": "./dist/types/exports/thirdweb.d.ts",
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "0.2.70"
"version": "0.2.71"
}
50 changes: 50 additions & 0 deletions packages/thirdweb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# thirdweb

## 5.110.0

### Minor Changes

- [#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`.

before:

```ts
const metadata = await getContractMetadata({ contract });
metadata; // Record<string, any>
metadata.name; // string
metadata.symbol; // string
```

after:

```ts
const metadata = await getContractMetadata({ contract });
metadata; // Record<string, unknown>
metadata.name; // string | null
metadata.symbol; // string | null
```

Metadata is not (and was never) strictly defined outside of `name` and `symbol` and may contain any type of data in the record.
This is not a runtime change but it may break type inference in existing apps that relied on the previous return type.

**Recommended fix:**
You _should_ type-guard any key you access from "metadata".

```ts
const metadata = await getContractMetadata({ contract });
if ("foo" in metadata && typeof metadata.foo === "string") {
metadata.foo; // string
}
```

**Quick fix:**
If adding type assertions is not something you can do in the short term you can also assert the type directly.
_This is as "unsafe" as the type was before._

```ts
const metadata = await getContractMetadata({ contract });
const foo = metadata.foo as string;
```

### Patch Changes

- [#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

## 5.109.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/thirdweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,5 +430,5 @@
}
},
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "5.109.1"
"version": "5.110.0"
}
2 changes: 2 additions & 0 deletions packages/wagmi-adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @thirdweb-dev/wagmi-adapter

## 0.2.168

## 0.2.167

## 0.2.166
Expand Down
2 changes: 1 addition & 1 deletion packages/wagmi-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
"type": "module",
"types": "./dist/types/exports/thirdweb.d.ts",
"typings": "./dist/types/exports/thirdweb.d.ts",
"version": "0.2.167"
"version": "0.2.168"
}
Loading