Skip to content

Commit

Permalink
Remove support for CommonJS (#749)
Browse files Browse the repository at this point in the history
* Remove support for CommonJS

* Add changeset
  • Loading branch information
rygine authored Dec 10, 2024
1 parent 887246c commit 1777a23
Show file tree
Hide file tree
Showing 25 changed files with 45 additions and 159 deletions.
17 changes: 17 additions & 0 deletions .changeset/slow-peas-report.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions content-types/content-type-group-updated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-group-updated/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-primitives/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-reaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-reaction/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-read-receipt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-read-receipt/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-remote-attachment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-remote-attachment/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-reply/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-reply/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-text/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 2 additions & 4 deletions content-types/content-type-transaction-reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 0 additions & 10 deletions content-types/content-type-transaction-reference/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
9 changes: 4 additions & 5 deletions packages/consent-proof-signature/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 0 additions & 10 deletions packages/consent-proof-signature/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 3 additions & 2 deletions packages/frames-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions packages/frames-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 0 additions & 10 deletions packages/frames-validator/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 1 addition & 2 deletions sdks/browser-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions sdks/node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 1777a23

Please sign in to comment.