diff --git a/.changeset/slow-peas-report.md b/.changeset/slow-peas-report.md new file mode 100644 index 000000000..a6d2ae783 --- /dev/null +++ b/.changeset/slow-peas-report.md @@ -0,0 +1,17 @@ +--- +"@xmtp/content-type-transaction-reference": major +"@xmtp/content-type-remote-attachment": major +"@xmtp/content-type-group-updated": major +"@xmtp/content-type-read-receipt": major +"@xmtp/content-type-primitives": major +"@xmtp/content-type-reaction": major +"@xmtp/content-type-reply": major +"@xmtp/consent-proof-signature": major +"@xmtp/content-type-text": major +"@xmtp/frames-validator": major +"@xmtp/frames-client": patch +"@xmtp/browser-sdk": patch +"@xmtp/node-sdk": patch +--- + +Dropped support for CommonJS diff --git a/content-types/content-type-group-updated/package.json b/content-types/content-type-group-updated/package.json index d2b154fc3..4ff05be41 100644 --- a/content-types/content-type-group-updated/package.json +++ b/content-types/content-type-group-updated/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-group-updated/rollup.config.js b/content-types/content-type-group-updated/rollup.config.js index 5d4d78f91..6ab90ebca 100644 --- a/content-types/content-type-group-updated/rollup.config.js +++ b/content-types/content-type-group-updated/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-primitives/package.json b/content-types/content-type-primitives/package.json index aa9ef8b01..5f00eb433 100644 --- a/content-types/content-type-primitives/package.json +++ b/content-types/content-type-primitives/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-primitives/rollup.config.js b/content-types/content-type-primitives/rollup.config.js index d56c26380..d1eabdc29 100644 --- a/content-types/content-type-primitives/rollup.config.js +++ b/content-types/content-type-primitives/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-reaction/package.json b/content-types/content-type-reaction/package.json index 0b6a13bb3..d5b51080e 100644 --- a/content-types/content-type-reaction/package.json +++ b/content-types/content-type-reaction/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-reaction/rollup.config.js b/content-types/content-type-reaction/rollup.config.js index 099cfcf95..a358cad50 100644 --- a/content-types/content-type-reaction/rollup.config.js +++ b/content-types/content-type-reaction/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-read-receipt/package.json b/content-types/content-type-read-receipt/package.json index 1aed5864c..3c340dbe1 100644 --- a/content-types/content-type-read-receipt/package.json +++ b/content-types/content-type-read-receipt/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-read-receipt/rollup.config.js b/content-types/content-type-read-receipt/rollup.config.js index 099cfcf95..a358cad50 100644 --- a/content-types/content-type-read-receipt/rollup.config.js +++ b/content-types/content-type-read-receipt/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-remote-attachment/package.json b/content-types/content-type-remote-attachment/package.json index 594def995..2f977f65c 100644 --- a/content-types/content-type-remote-attachment/package.json +++ b/content-types/content-type-remote-attachment/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-remote-attachment/rollup.config.js b/content-types/content-type-remote-attachment/rollup.config.js index 14dd0a594..0b8b7c193 100644 --- a/content-types/content-type-remote-attachment/rollup.config.js +++ b/content-types/content-type-remote-attachment/rollup.config.js @@ -47,16 +47,6 @@ export default defineConfig([ ], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-reply/package.json b/content-types/content-type-reply/package.json index b9c353d65..faf7caa40 100644 --- a/content-types/content-type-reply/package.json +++ b/content-types/content-type-reply/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-reply/rollup.config.js b/content-types/content-type-reply/rollup.config.js index 92d393a56..3e3c3bfd6 100644 --- a/content-types/content-type-reply/rollup.config.js +++ b/content-types/content-type-reply/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-text/package.json b/content-types/content-type-text/package.json index b16e37c23..cc0aa2409 100644 --- a/content-types/content-type-text/package.json +++ b/content-types/content-type-text/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-text/rollup.config.js b/content-types/content-type-text/rollup.config.js index 099cfcf95..a358cad50 100644 --- a/content-types/content-type-text/rollup.config.js +++ b/content-types/content-type-text/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/content-types/content-type-transaction-reference/package.json b/content-types/content-type-transaction-reference/package.json index 4f0e7a089..a4a332aec 100644 --- a/content-types/content-type-transaction-reference/package.json +++ b/content-types/content-type-transaction-reference/package.json @@ -29,13 +29,11 @@ ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/content-types/content-type-transaction-reference/rollup.config.js b/content-types/content-type-transaction-reference/rollup.config.js index 099cfcf95..a358cad50 100644 --- a/content-types/content-type-transaction-reference/rollup.config.js +++ b/content-types/content-type-transaction-reference/rollup.config.js @@ -37,16 +37,6 @@ export default defineConfig([ plugins: [...plugins, terser()], external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/packages/consent-proof-signature/package.json b/packages/consent-proof-signature/package.json index 61915fcfc..973c55960 100644 --- a/packages/consent-proof-signature/package.json +++ b/packages/consent-proof-signature/package.json @@ -27,14 +27,13 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "require": "./dist/index.cjs", - "import": "./dist/index.js" + "browser": "./dist/browser/index.js", + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", - "browser": "dist/index.js", + "main": "dist/index.js", + "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/packages/consent-proof-signature/rollup.config.js b/packages/consent-proof-signature/rollup.config.js index 455d229ed..2ceb8eb2c 100644 --- a/packages/consent-proof-signature/rollup.config.js +++ b/packages/consent-proof-signature/rollup.config.js @@ -27,16 +27,6 @@ export default defineConfig([ external, plugins, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - external, - plugins, - }, { input: "src/index.ts", output: { diff --git a/packages/frames-client/package.json b/packages/frames-client/package.json index 3ab232635..4f6c9c2de 100644 --- a/packages/frames-client/package.json +++ b/packages/frames-client/package.json @@ -27,12 +27,13 @@ "exports": { ".": { "types": "./dist/index.d.ts", + "browser": "./dist/browser/index.js", "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "module": "dist/index.js", - "browser": "dist/index.js", + "main": "dist/index.js", + "browser": "dist/browser/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/packages/frames-validator/package.json b/packages/frames-validator/package.json index ff90e27ca..8c945fa15 100644 --- a/packages/frames-validator/package.json +++ b/packages/frames-validator/package.json @@ -17,13 +17,11 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/packages/frames-validator/rollup.config.js b/packages/frames-validator/rollup.config.js index 10e2dee96..b60ac889c 100644 --- a/packages/frames-validator/rollup.config.js +++ b/packages/frames-validator/rollup.config.js @@ -28,16 +28,6 @@ export default defineConfig([ plugins, external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: { diff --git a/sdks/browser-sdk/package.json b/sdks/browser-sdk/package.json index 9dae2142c..5ccda23f4 100644 --- a/sdks/browser-sdk/package.json +++ b/sdks/browser-sdk/package.json @@ -32,8 +32,7 @@ }, "./package.json": "./package.json" }, - "module": "dist/index.js", - "browser": "dist/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", diff --git a/sdks/node-sdk/package.json b/sdks/node-sdk/package.json index c47b370c0..ee1cb235b 100644 --- a/sdks/node-sdk/package.json +++ b/sdks/node-sdk/package.json @@ -26,13 +26,11 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./package.json": "./package.json" }, - "main": "dist/index.cjs", - "module": "dist/index.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" diff --git a/sdks/node-sdk/rollup.config.js b/sdks/node-sdk/rollup.config.js index 660feb54d..43bf5378d 100644 --- a/sdks/node-sdk/rollup.config.js +++ b/sdks/node-sdk/rollup.config.js @@ -41,16 +41,6 @@ export default defineConfig([ plugins, external, }, - { - input: "src/index.ts", - output: { - file: "dist/index.cjs", - format: "cjs", - sourcemap: true, - }, - plugins, - external, - }, { input: "src/index.ts", output: {