Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
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
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,78 @@ should use 4.0.1-alpha.0 for testing.

### Changed

#### web3

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-core

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-errors

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-eth

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-eth-abi

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-eth-accounts

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-eth-contract

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-eth-ens

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-eth-iban

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-eth-personal

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-net

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-providers-http

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-providers-ipc

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-providers-ws

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-rpc-methods

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)

#### web3-types

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-utils

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-validator

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)

#### web3-providers-ipc

- Refactor to use common SocketProvider class (#5683)
Expand Down
1 change: 1 addition & 0 deletions packages/web3-core/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
lib
jest.config.js
.eslintrc.js
4 changes: 4 additions & 0 deletions packages/web3-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-core",
"version": "4.0.1-alpha.3",
"description": "Web3 core tools for sub-packages. This is an internal package.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For npm whitelisting only lib , this will filter out dist form including in published lib.
This will impact CDN as current CDN is configured to pick minified build through npm ( as per Greg info, I discussed with him last time ).

I personally like it, as it will reduce lib size , so users node_modules will be of less size ( by excluding minified builds) but we will need to configure explicitly CDN for 4.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #5743 to track this

],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "dist"
"outDir": "lib"
},
"include": ["src/**/*"]
}
4 changes: 4 additions & 0 deletions packages/web3-errors/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated Web3.js dependencies (#5664)

## [Unreleased]

### Changed

- `main` and `files` entries in `package.json` changed to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-errors",
"version": "0.1.1-alpha.2",
"description": "This package has web3 error classes",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
1 change: 1 addition & 0 deletions packages/web3-eth-abi/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
lib
jest.config.js
.eslintrc.js
4 changes: 4 additions & 0 deletions packages/web3-eth-abi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-abi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-abi",
"version": "4.0.1-alpha.3",
"description": "Web3 module encode and decode EVM in/output.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-abi",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-abi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "dist"
"outDir": "lib"
},
"include": ["src/**/*"]
}
4 changes: 4 additions & 0 deletions packages/web3-eth-accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-accounts",
"version": "4.0.1-alpha.3",
"description": "Package for managing Ethereum accounts and signing",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "dist",
"outDir": "lib",
"esModuleInterop": true
},
"include": ["src/**/*"]
Expand Down
4 changes: 4 additions & 0 deletions packages/web3-eth-contract/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,7 @@ const transactionHash = receipt.transactionHash;
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-contract",
"version": "4.0.1-alpha.3",
"description": "Web3 module to interact with Ethereum smart contracts.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-contract",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/src/encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
jsonInterfaceMethodToString,
} from 'web3-eth-abi';

import { blockSchema, logSchema } from 'web3-eth/dist/schemas';
import { blockSchema, logSchema } from 'web3-eth';

import { Eip838ExecutionError, Web3ContractError } from 'web3-errors';
// eslint-disable-next-line import/no-cycle
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "dist",
"outDir": "lib",
"esModuleInterop": true
},
"include": ["src/**/*"]
Expand Down
4 changes: 4 additions & 0 deletions packages/web3-eth-ens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-ens",
"version": "4.0.1-alpha.3",
"description": "This package has ENS functions for interacting with Ethereum Name Service.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
4 changes: 4 additions & 0 deletions packages/web3-eth-iban/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-iban/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-iban",
"version": "4.0.1-alpha.3",
"description": "This package converts Ethereum addresses to IBAN addresses and vice versa.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
3 changes: 0 additions & 3 deletions packages/web3-eth-personal/.eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions packages/web3-eth-personal/.eslintignore
4 changes: 4 additions & 0 deletions packages/web3-eth-personal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated dependencies (#5725)

## [Unreleased]

### Changed

- `tsc` compiled files moved to `lib/` directory from `dist/` (#5739)
10 changes: 5 additions & 5 deletions packages/web3-eth-personal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "web3-eth-personal",
"version": "4.0.1-alpha.3",
"description": "Web3 module to interact with the Ethereum blockchain accounts stored in the node.",
"main": "dist/index.js",
"main": "lib/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
"lib/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"clean": "rimraf dist && rimraf lib",
"prebuild": "yarn clean",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
Expand Down
Loading