Skip to content

Commit

Permalink
Merge pull request #464 from MeshJS/config-heaven
Browse files Browse the repository at this point in the history
Update configs build configs, remove lib wrapper
  • Loading branch information
jinglescode authored Dec 26, 2024
2 parents c85c7ba + 795ae0c commit d102f4a
Show file tree
Hide file tree
Showing 15 changed files with 495 additions and 515 deletions.
889 changes: 435 additions & 454 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/mesh-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/common",
"version": "1.8.4",
"version": "1.8.5",
"description": "Contains constants, types and interfaces used across the SDK and different serialization libraries",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/mesh-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/contract",
"version": "1.8.4",
"version": "1.8.5",
"description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -34,9 +34,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/core": "1.8.4",
"@meshsdk/core-csl": "1.8.4"
"@meshsdk/common": "1.8.5",
"@meshsdk/core": "1.8.5",
"@meshsdk/core-csl": "1.8.5"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/mesh-core-csl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-csl",
"version": "1.8.4",
"version": "1.8.5",
"description": "Types and utilities functions between Mesh and cardano-serialization-lib",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down Expand Up @@ -31,15 +31,15 @@
},
"devDependencies": {
"@meshsdk/configs": "*",
"@meshsdk/provider": "1.8.4",
"@meshsdk/provider": "1.8.5",
"@types/json-bigint": "^1.0.4",
"eslint": "^8.57.0",
"ts-jest": "^29.1.4",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/common": "1.8.5",
"@sidan-lab/sidan-csl-rs-browser": "0.9.13",
"@sidan-lab/sidan-csl-rs-nodejs": "0.9.13",
"@types/base32-encoding": "^1.0.2",
Expand Down
7 changes: 5 additions & 2 deletions packages/mesh-core-cst/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-cst",
"version": "1.8.4",
"version": "1.8.5",
"description": "Types and utilities functions between Mesh and cardano-js-sdk",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -42,7 +42,10 @@
"@harmoniclabs/cbor": "1.3.0",
"@harmoniclabs/plutus-data": "1.2.4",
"@harmoniclabs/uplc": "1.2.4",
"@meshsdk/common": "1.8.4",
"@harmoniclabs/crypto": "0.2.4",
"@harmoniclabs/pair": "1.0.0",
"@harmoniclabs/bytestring": "1.0.0",
"@meshsdk/common": "1.8.5",
"@stricahq/bip32ed25519": "^1.1.0",
"@stricahq/cbors": "^1.0.3",
"pbkdf2": "^3.1.2"
Expand Down
16 changes: 8 additions & 8 deletions packages/mesh-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core",
"version": "1.8.4",
"version": "1.8.5",
"description": "Mesh SDK Core - https://meshjs.dev/",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -33,13 +33,13 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/core-csl": "1.8.4",
"@meshsdk/core-cst": "1.8.4",
"@meshsdk/provider": "1.8.4",
"@meshsdk/react": "1.8.4",
"@meshsdk/transaction": "1.8.4",
"@meshsdk/wallet": "1.8.4"
"@meshsdk/common": "1.8.5",
"@meshsdk/core-csl": "1.8.5",
"@meshsdk/core-cst": "1.8.5",
"@meshsdk/provider": "1.8.5",
"@meshsdk/react": "1.8.5",
"@meshsdk/transaction": "1.8.5",
"@meshsdk/wallet": "1.8.5"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/mesh-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/provider",
"version": "1.8.4",
"version": "1.8.5",
"description": "Blockchain data providers - https://meshjs.dev/providers",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -35,8 +35,8 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/core-cst": "1.8.4",
"@meshsdk/common": "1.8.5",
"@meshsdk/core-cst": "1.8.5",
"@utxorpc/sdk": "0.6.2",
"@utxorpc/spec": "0.10.1",
"axios": "^1.7.2"
Expand Down
15 changes: 8 additions & 7 deletions packages/mesh-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/react",
"version": "1.8.4",
"version": "1.8.5",
"description": "React component library - https://meshjs.dev/react",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand All @@ -19,8 +19,8 @@
"dist/**"
],
"scripts": {
"build:mesh-old": "tsup src/index.ts --format esm,cjs --dts && tailwindcss -i ./src/styles.css -o ./dist/index.css",
"build:mesh": "tsup src/index.ts --format esm,cjs --cjsInterop --dts && tailwindcss -i ./src/styles.css -o ./dist/index.css",
"build:mesh_old": "tsup src/index.ts --format esm,cjs --cjsInterop --dts && tailwindcss -i ./src/styles.css -o ./dist/index.css",
"build:mesh": "tsup && tailwindcss -i ./src/styles.css -o ./dist/index.css",
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
"clean": "rm -rf .turbo && rm -rf dist && rm -rf node_modules",
"format": "prettier --check . --ignore-path ../../.gitignore",
Expand All @@ -30,15 +30,16 @@
},
"dependencies": {
"@fabianbormann/cardano-peer-connect": "^1.2.18",
"@meshsdk/common": "1.8.4",
"@meshsdk/transaction": "1.8.4",
"@meshsdk/wallet": "1.8.4",
"@meshsdk/common": "1.8.5",
"@meshsdk/transaction": "1.8.5",
"@meshsdk/wallet": "1.8.5",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-tooltip": "^1.1.4",
"class-variance-authority": "^0.7.1",
"tailwindcss-animate": "^1.0.7"
"tailwindcss-animate": "^1.0.7",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
"@meshsdk/configs": "*",
Expand Down
16 changes: 7 additions & 9 deletions packages/mesh-react/src/cardano-wallet/screen-p2p.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useEffect, useRef, useState } from "react";

// import { DAppPeerConnect } from "@fabianbormann/cardano-peer-connect";
// import { IWalletInfo } from "@fabianbormann/cardano-peer-connect/dist/src/types";
import { DAppPeerConnect } from "@fabianbormann/cardano-peer-connect";
import { IWalletInfo } from "@fabianbormann/cardano-peer-connect/dist/src/types";

import { Button } from "../common/button";
import { DAppPeerConnect, IWalletInfo } from "../common/cardano-peer-connect";
import { useWallet } from "../hooks";

export default function ScreenP2P({
Expand Down Expand Up @@ -36,24 +34,24 @@ export default function ScreenP2P({
},
announce: cardanoPeerConnect.announce,
onApiInject: async (name: string, address: string) => {
console.log(5, "onApiInject", name, address);
// console.log(5, "onApiInject", name, address);
await connect(name);
setOpen(false);
},
onApiEject: (name: string, address: string) => {
console.log(5, "onApiEject", name, address);
// console.log(5, "onApiEject", name, address);
},
onConnect: (address: string, walletInfo?: IWalletInfo) => {
console.log(5, "Connected to wallet", address, walletInfo);
// console.log(5, "Connected to wallet", address, walletInfo);
},
onDisconnect: () => {
console.log(5, "Disconnected from wallet");
// console.log(5, "Disconnected from wallet");
},
verifyConnection: (
walletInfo: IWalletInfo,
callback: (granted: boolean, autoconnect: boolean) => void,
) => {
console.log(5, "verifyConnection", walletInfo);
// console.log(5, "verifyConnection", walletInfo);
callback(true, true);
},
useWalletDiscovery: true,
Expand Down
12 changes: 0 additions & 12 deletions packages/mesh-react/src/common/cardano-peer-connect/index.ts

This file was deleted.

9 changes: 9 additions & 0 deletions packages/mesh-react/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
noExternal: ['@fabianbormann/cardano-peer-connect'],
skipNodeModulesBundle: true,
});
4 changes: 2 additions & 2 deletions packages/mesh-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/svelte",
"version": "1.8.4",
"version": "1.8.5",
"description": "Svelte component library - https://meshjs.dev/svelte",
"type": "module",
"exports": {
Expand All @@ -26,7 +26,7 @@
"dev": "vite dev"
},
"dependencies": {
"@meshsdk/core": "1.8.4",
"@meshsdk/core": "1.8.5",
"bits-ui": "1.0.0-next.65"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/mesh-transaction/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/transaction",
"version": "1.8.4",
"version": "1.8.5",
"description": "Transactions - https://meshjs.dev/apis/transaction",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -35,9 +35,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/core-csl": "1.8.4",
"@meshsdk/core-cst": "1.8.4",
"@meshsdk/common": "1.8.5",
"@meshsdk/core-csl": "1.8.5",
"@meshsdk/core-cst": "1.8.5",
"json-bigint": "^1.0.0"
},
"prettier": "@meshsdk/configs/prettier",
Expand Down
10 changes: 5 additions & 5 deletions packages/mesh-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/wallet",
"version": "1.8.4",
"version": "1.8.5",
"description": "Wallets - https://meshjs.dev/apis/wallets",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -35,10 +35,10 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.4",
"@meshsdk/core-csl": "1.8.4",
"@meshsdk/core-cst": "1.8.4",
"@meshsdk/transaction": "1.8.4",
"@meshsdk/common": "1.8.5",
"@meshsdk/core-csl": "1.8.5",
"@meshsdk/core-cst": "1.8.5",
"@meshsdk/transaction": "1.8.5",
"@nufi/dapp-client-cardano": "0.3.5",
"@nufi/dapp-client-core": "0.3.5"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/mesh-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A quick and easy way to bootstrap your dApps on Cardano using Mesh.",
"homepage": "https://meshjs.dev",
"author": "MeshJS",
"version": "1.8.4",
"version": "1.8.5",
"license": "Apache-2.0",
"type": "module",
"main": "./dist/index.cjs",
Expand Down

0 comments on commit d102f4a

Please sign in to comment.