Skip to content

Commit

Permalink
Merge pull request #451 from bcnmy/hotfix/esm_builld
Browse files Browse the repository at this point in the history
Fix: eslint file extension check
  • Loading branch information
livingrockrises authored Mar 7, 2024
2 parents 345753c + 93186ad commit 04bc6c5
Show file tree
Hide file tree
Showing 25 changed files with 139 additions and 97 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "airbnb-typescript/base", "plugin:prettier/recommended"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
Expand All @@ -23,11 +30,12 @@ module.exports = {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"security/detect-object-injection": "warn",
"security/detect-unsafe-regex": "error",
"import/extensions": "error", // Now we need to specify extensions for imports for esm builds
"security/detect-object-injection": "off", // turning off Injection Sink rule
"@typescript-eslint/no-throw-literal": "off", // temp deactivated needs to be removed once fixed
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"import/extensions": ["error", "ignorePackages"],
"import/no-unresolved": "off",
},
settings: {},
overrides: [
Expand Down
6 changes: 6 additions & 0 deletions packages/account/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

- Added missing extensions ([fdbec6](https://github.com/bcnmy/biconomy-client-sdk/pull/451/commits/fdbec68625f4d7f436dc39d4c1779cdbb7c53e6d))
- Fixed issue reporting format ([815e9440](https://github.com/bcnmy/biconomy-client-sdk/pull/450/commits/815e9440db03ebae98bb24edfcb3bbcabf9b2a61))


## 4.1.0 (2023-04-03)

Features:
Expand Down
10 changes: 5 additions & 5 deletions packages/account/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/account",
"version": "4.1.0",
"version": "4.1.1",
"description": "This package provides apis for ERC-4337 based smart account implementations",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -68,10 +68,10 @@
},
"dependencies": {
"@alchemy/aa-core": "^3.1.1",
"@biconomy/bundler": "^4.1.0",
"@biconomy/common": "^4.1.0",
"@biconomy/modules": "^4.1.0",
"@biconomy/paymaster": "^4.1.0",
"@biconomy/bundler": "^4.1.1",
"@biconomy/common": "^4.1.1",
"@biconomy/modules": "^4.1.1",
"@biconomy/paymaster": "^4.1.1",
"viem": "^2.7.12"
}
}
2 changes: 1 addition & 1 deletion packages/account/src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
EntryPointAddressesByVersion,
BiconomyFactoriesByVersion,
BiconomyImplementationsByVersion,
} from "./Types";
} from "./Types.js";

export const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";

Expand Down
4 changes: 2 additions & 2 deletions packages/account/src/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { encodeAbiParameters, parseAbiParameters, keccak256, Hex, Chain } from "
import type { UserOperationStruct } from "@alchemy/aa-core";
import { SupportedSigner, convertSigner } from "@biconomy/common";
import { extractChainIdFromBundlerUrl } from "@biconomy/bundler";
import { BiconomySmartAccountV2Config } from "./Types";
import { BiconomySmartAccountV2Config } from "./Types.js";
import { extractChainIdFromPaymasterUrl } from "@biconomy/bundler";
import * as chains from "viem/chains";
import { ERROR_MESSAGES } from "./Constants";
import { ERROR_MESSAGES } from "./Constants.js";

/**
* pack the userOperation
Expand Down
6 changes: 3 additions & 3 deletions packages/account/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Types";
export * from "./Utils";
export * from "./Constants";
export * from "./Types.js";
export * from "./Utils.js";
export * from "./Constants.js";
4 changes: 4 additions & 0 deletions packages/bundler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

VERSION Bump Only.

## 4.1.0 (2023-04-03)

VERSION Bump Only.
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/bundler",
"version": "4.1.0",
"version": "4.1.1",
"description": "Biconomy Bundler package to interact with any bundler node as per ERC4337 standard",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"@alchemy/aa-core": "^3.1.1",
"@biconomy/common": "^4.1.0",
"@biconomy/common": "^4.1.1",
"viem": "^2.7.12"
},
"devDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion packages/bundler/src/interfaces/IBundler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { StateOverrideSet } from "@biconomy/common";
import { UserOpResponse, UserOpGasResponse, UserOpReceipt, UserOpByHashResponse, UserOpStatus, SimulationType, GasFeeValues } from "../utils/Types";
import {
UserOpResponse,
UserOpGasResponse,
UserOpReceipt,
UserOpByHashResponse,
UserOpStatus,
SimulationType,
GasFeeValues,
} from "../utils/Types.js";
import { UserOperationStruct } from "@alchemy/aa-core";

export interface IBundler {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/common",
"version": "4.1.0",
"version": "4.1.1",
"description": "common utils to be used for aa transactions",
"keywords": [
"utils"
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/utils/Helpers/convertSigner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EthersSigner } from "../EthersSigner.js";
import { SupportedSigner } from "../Types";
import { SupportedSigner } from "../Types.js";
import { WalletClient } from "viem";
import { WalletClientSigner, SmartAccountSigner } from "@alchemy/aa-core";
import { UNIQUE_PROPERTIES_PER_SIGNER } from "../Constants.js";
Expand Down
4 changes: 4 additions & 0 deletions packages/modules/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

VERSION Bump Only.

## 4.1.0 (2023-04-03)

VERSION Bump Only.
Expand Down
8 changes: 4 additions & 4 deletions packages/modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/modules",
"version": "4.1.0",
"version": "4.1.1",
"description": "This package provides different validation modules/plugins for ERC4337 compatible modular account",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"@alchemy/aa-core": "^3.1.1",
"@biconomy/common": "^4.1.0",
"@biconomy/common": "^4.1.1",
"@ethersproject/abi": "^5.7.0",
"merkletreejs": "^0.3.11",
"viem": "^2.7.12"
Expand All @@ -64,7 +64,7 @@
"esbuild": "^0.19.11",
"esbuild-plugin-tsc": "^0.4.0",
"npm-dts": "^1.3.12",
"@biconomy/paymaster": "^4.1.0",
"@biconomy/modules": "^4.1.0"
"@biconomy/paymaster": "^4.1.1",
"@biconomy/modules": "^4.1.1"
}
}
2 changes: 1 addition & 1 deletion packages/modules/src/interfaces/ISessionStorage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Hex } from "viem";
import { SmartAccountSigner } from "@alchemy/aa-core";
import { SignerData } from "../utils/Types";
import { SignerData } from "../utils/Types.js";

export type SessionStatus = "PENDING" | "ACTIVE" | "INACTIVE" | "EXPIRED";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SmartAccountSigner, WalletClientSigner } from "@alchemy/aa-core";
import { ISessionStorage, SessionLeafNode, SessionSearchParam, SessionStatus } from "../interfaces/ISessionStorage.js";
import { mainnet } from "viem/chains";
import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
import { SignerData } from "../utils/Types";
import { SignerData } from "../utils/Types.js";

export class SessionLocalStorage implements ISessionStorage {
private smartAccountAddress: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISessionValidationModule } from "../interfaces/ISessionValidationModule.js";
import { ERC20SessionKeyData, SessionValidationModuleConfig } from "../utils/Types";
import { ERC20SessionKeyData, SessionValidationModuleConfig } from "../utils/Types.js";
import { encodeAbiParameters, parseAbiParameters } from "viem";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/src/utils/Types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chain, Hex } from "viem";
import { SmartAccountSigner, UserOperationStruct } from "@alchemy/aa-core";
import { SessionKeyManagerModule } from "../SessionKeyManagerModule";
import { SessionKeyManagerModule } from "../SessionKeyManagerModule.js";
import { ISessionStorage } from "../interfaces/ISessionStorage.js";
import { SupportedSigner } from "@biconomy/common";
export type ModuleVersion = "V1_0_0"; // | 'V1_0_1'
Expand Down
4 changes: 4 additions & 0 deletions packages/particle-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

VERSION Bump Only.

## 4.1.0 (2023-04-03)

VERSION Bump Only.
Expand Down
2 changes: 1 addition & 1 deletion packages/particle-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/particle-auth",
"version": "4.1.0",
"version": "4.1.1",
"description": "Particle auth for Biconomy SDK",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/paymaster/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

VERSION Bump Only.

## 4.1.0 (2023-04-03)

VERSION Bump Only.
Expand Down
4 changes: 2 additions & 2 deletions packages/paymaster/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/paymaster",
"version": "4.1.0",
"version": "4.1.1",
"description": "Biconomy Paymaster to interact with Paymaster Services that interacts with ( veriying and token ) paymasters",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"@alchemy/aa-core": "^3.1.1",
"@biconomy/common": "^4.1.0",
"@biconomy/common": "^4.1.1",
"viem": "^2.7.12"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/paymaster/src/interfaces/IPaymaster.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type UserOperationStruct } from "@alchemy/aa-core";
import { PaymasterAndDataResponse } from "../utils/Types";
import { PaymasterAndDataResponse } from "../utils/Types.js";

export interface IPaymaster {
// Implementing class may add extra parameter (for example paymasterServiceData with it's own type) in below function signature
Expand Down
4 changes: 4 additions & 0 deletions packages/transak/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 4.1.1 (2023-07-03)

VERSION Bump Only.

## 4.1.0 (2023-04-03)

VERSION Bump Only.
Expand Down
2 changes: 1 addition & 1 deletion packages/transak/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biconomy/transak",
"version": "4.1.0",
"version": "4.1.1",
"description": "transak for biconomy sdk",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
Loading

0 comments on commit 04bc6c5

Please sign in to comment.