Skip to content

Commit 8754d39

Browse files
authored
Migrate to readonly-date-esm (#1909)
1 parent 8a3b555 commit 8754d39

26 files changed

+52
-42
lines changed

.pnp.cjs

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:93f9049b7800205bfa827bcf14e5bf8955ccdba442e7e86a87fe95099111ab07
3+
size 16675

.yarn/cache/readonly-date-npm-1.0.0-e93ba2496b-7ab32bf19f.zip

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

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ and this project adheres to
4646

4747
This change requires users to use TypeScript 5.7 or newer. ([#1883])
4848

49+
- all: Migrate from `readonly-date` to `readonly-date-esm` ^2 which is an ESM
50+
package but otherwise equal to the previous version. If you are using
51+
`ReadonlyDate` in your codebase it is recommended to also update like this to
52+
avoid type mismatches:
53+
54+
```diff
55+
-import { ReadonlyDate } from "readonly-date";
56+
+import { ReadonlyDate } from "readonly-date-esm";
57+
```
58+
4959
- @cosmjs/tendermint-rpc: Remove union type `TendermintClient`. Use
5060
`CometClient` or just `Tendermint37Client` instead. ([#1866])
5161
- @cosmjs/tendermint-rpc: Remove `isTendermint34Client`. Remove

packages/cosmwasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"karma-jasmine-html-reporter": "^1.5.4",
6969
"nyc": "^17.1.0",
7070
"prettier": "^3.6.2",
71-
"readonly-date": "^1.0.0",
71+
"readonly-date-esm": "^2.0.0",
7272
"ses": "^1.13.0",
7373
"source-map-support": "^0.5.19",
7474
"typedoc": "^0.28",

packages/cosmwasm/src/cosmwasmclient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { assertIsDeliverTxSuccess, coins, MsgSendEncodeObject, StdFee } from "@cosmjs/stargate";
1313
import { assert, sleep } from "@cosmjs/utils";
1414
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx";
15-
import { ReadonlyDate } from "readonly-date";
15+
import { ReadonlyDate } from "readonly-date-esm";
1616

1717
import { Code, CosmWasmClient, PrivateCosmWasmClient } from "./cosmwasmclient";
1818
import { SigningCosmWasmClient } from "./signingcosmwasmclient";

packages/encoding/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dependencies": {
4242
"@scure/base": "^2.0.0",
4343
"base64-js": "^1.3.0",
44-
"readonly-date": "^1.0.0"
44+
"readonly-date-esm": "^2.0.0"
4545
},
4646
"devDependencies": {
4747
"@istanbuljs/nyc-config-typescript": "^1.0.1",

packages/encoding/src/rfc3339.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReadonlyDate } from "readonly-date";
1+
import { ReadonlyDate } from "readonly-date-esm";
22

33
const rfc3339Matcher =
44
/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;

packages/stargate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"karma-jasmine-html-reporter": "^1.5.4",
6868
"nyc": "^17.1.0",
6969
"prettier": "^3.6.2",
70-
"readonly-date": "^1.0.0",
70+
"readonly-date-esm": "^2.0.0",
7171
"ses": "^1.13.0",
7272
"source-map-support": "^0.5.19",
7373
"typedoc": "^0.28",

packages/stargate/src/stargateclient.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "@cosmjs/proto-signing";
1111
import { assert, sleep } from "@cosmjs/utils";
1212
import { TxRaw } from "cosmjs-types/cosmos/tx/v1beta1/tx";
13-
import { ReadonlyDate } from "readonly-date";
13+
import { ReadonlyDate } from "readonly-date-esm";
1414

1515
import {
1616
assertIsDeliverTxSuccess,

0 commit comments

Comments
 (0)