Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev deps bumps #2

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2e7c1bf
Bump semver from 5.7.1 to 5.7.2 (#93)
dependabot[bot] Jul 11, 2023
f242e0b
Bump @metamask/post-message-stream from 6.1.1 to 6.1.2 (#86)
dependabot[bot] Jul 11, 2023
a5aeb97
Bump @metamask/auto-changelog from 3.1.0 to 3.2.0 (#100)
dependabot[bot] Jul 17, 2023
9117f97
Bump word-wrap from 1.2.3 to 1.2.4 (#101)
dependabot[bot] Jul 20, 2023
6955f8e
Bump ses from 0.18.1 to 0.18.7 (#102)
dependabot[bot] Aug 10, 2023
4a471a9
Bump @metamask/post-message-stream from 6.1.2 to 6.2.0 (#103)
dependabot[bot] Aug 30, 2023
7ebd4c1
Bump @metamask/design-tokens from 1.11.1 to 1.12.0 (#92)
dependabot[bot] Aug 30, 2023
678ab23
deps: Bump all dependencies (#105)
legobeat Oct 7, 2023
4032ebf
2.1.1 (#106)
github-actions[bot] Nov 6, 2023
ed3f52f
deps(ses): update to latest version (#120)
brad-decker Nov 6, 2023
7472a4d
Bump @metamask/post-message-stream from 6.2.0 to 7.0.0 (#104)
dependabot[bot] Nov 6, 2023
453d763
Bump @metamask/auto-changelog from 3.2.0 to 3.4.2 (#114)
dependabot[bot] Nov 6, 2023
41cf9f3
BREAKING: Increase minimum Node.js version to 16; recommended to 18 (…
legobeat Nov 7, 2023
bbea121
Bump browserify-sign from 4.2.1 to 4.2.2 (#118)
dependabot[bot] Nov 7, 2023
eeb0238
Bump @babel/traverse from 7.17.3 to 7.23.2 (#111)
dependabot[bot] Nov 7, 2023
2496aa9
Streams API v3 (#122)
legobeat Nov 7, 2023
e661373
devDeps: lavamoat-allow-scripts@^2.3.0->^2.3.1
legobeat Sep 6, 2023
a2bfbcc
devDeps: bump babel packages
legobeat Sep 6, 2023
712fa8c
devDeps: @types/node@^17.0.23->^14.18.58
legobeat Sep 6, 2023
a7396ba
devDeps: fs-extra@^10.1.0->^11.1.1
legobeat Sep 6, 2023
a3e3644
devDeps: remove unused @testing-library/dom, @testing-library/user-info
legobeat Sep 6, 2023
a33b702
devDeps: playwright@^1.30.0->~1.33.0
legobeat Sep 6, 2023
9fd1f71
devDeps: remove unused terser; lockbump terser
legobeat Sep 6, 2023
2c9d488
devDeps: workbox-build@^6.5.3->^6.6.0
legobeat Sep 6, 2023
829863f
devDeps: @metamask/auto-changelog@^3.0.0->^3.4.3
legobeat Oct 13, 2023
c089d67
yarn dedupe
legobeat Nov 7, 2023
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
6 changes: 3 additions & 3 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -49,7 +49,7 @@ jobs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- prepare
strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.1]
### Fixed
- Dependency updates ([#105](https://github.com/MetaMask/phishing-warning/pull/105))
- Move @types/punycode from dependencies to devDependencies
- Update @metamask/design-tokens from ^1.6.0 to ^1.12.0
- Update @metamask/post-message-stream from ^6.0.0 to ^6.2.0
- Update punycode from ^2.1.1 to ^2.3.0
- Update ses from ^0.18.1 to ^0.18.7

## [2.1.0]
### Changed
- "Back to safety" button now triggers a `backToSafetyPhishingWarning` message to be sent on the `phishingSafelistStream` ([#84](https://github.com/MetaMask/phishing-warning/pull/84))
Expand Down Expand Up @@ -54,7 +63,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial implementation of the phishing warning page
- This should behave identically to the phishing warning page built into the MetaMask extension.

[Unreleased]: https://github.com/MetaMask/phishing-warning/compare/v2.1.0...HEAD
[Unreleased]: https://github.com/MetaMask/phishing-warning/compare/v2.1.1...HEAD
[2.1.1]: https://github.com/MetaMask/phishing-warning/compare/v2.1.0...v2.1.1
[2.1.0]: https://github.com/MetaMask/phishing-warning/compare/v2.0.1...v2.1.0
[2.0.1]: https://github.com/MetaMask/phishing-warning/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/MetaMask/phishing-warning/compare/v1.2.2...v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package is published to npm so that we can host it locally when running end

### Setup

- Install [Node.js](https://nodejs.org) version 12
- Install [Node.js](https://nodejs.org) version 18
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
- Install [Yarn v3](https://yarnpkg.com/getting-started/install)
- Run `yarn install` to install dependencies and run any required post-install scripts
Expand Down
43 changes: 19 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/phishing-warning",
"version": "2.1.0",
"version": "2.1.1",
"description": "A page to warn users about a suspected phishing site.",
"repository": {
"type": "git",
Expand All @@ -23,31 +23,27 @@
"test": "yarn playwright test"
},
"dependencies": {
"@metamask/design-tokens": "^1.6.0",
"@metamask/post-message-stream": "^6.0.0",
"@types/punycode": "^2.1.0",
"@metamask/design-tokens": "^1.12.0",
"@metamask/object-multiplex": "^2.0.0",
"@metamask/post-message-stream": "^7.0.0",
"eth-phishing-detect": "^1.2.0",
"globalthis": "1.0.1",
"obj-multiplex": "^1.0.0",
"pump": "^3.0.0",
"punycode": "^2.1.1",
"ses": "^0.18.1"
"punycode": "^2.3.0",
"readable-stream": "^3.6.2",
"ses": "^0.18.8"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@lavamoat/allow-scripts": "^2.3.0",
"@metamask/auto-changelog": "^3.0.0",
"@babel/core": "^7.22.15",
"@babel/preset-env": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@lavamoat/allow-scripts": "^2.3.1",
"@metamask/auto-changelog": "^3.4.3",
"@metamask/eslint-config": "^9.0.0",
"@metamask/eslint-config-nodejs": "^9.0.0",
"@metamask/eslint-config-typescript": "^9.0.1",
"@playwright/test": "^1.30.0",
"@testing-library/dom": "^8.13.0",
"@testing-library/user-event": "^14.1.1",
"@types/node": "^17.0.23",
"@types/pump": "^1.1.1",
"@types/readable-stream": "^2.3.13",
"@playwright/test": "~1.33.0",
"@types/node": "^14.18.58",
"@types/punycode": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babelify": "^10.0.0",
Expand All @@ -59,20 +55,19 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"exorcist": "^2.0.0",
"fs-extra": "^10.1.0",
"fs-extra": "^11.1.1",
"http-server": "^14.1.1",
"minify-stream": "^2.1.0",
"playwright": "^1.30.0",
"playwright": "~1.33.0",
"prettier": "^2.6.2",
"prettier-plugin-packagejson": "^2.2.17",
"terser": "^5.13.1",
"ts-node": "^10.7.0",
"typescript": "~4.4.4",
"workbox-build": "^6.5.3"
"workbox-build": "^6.6.0"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=14.0.0"
"node": "^16.20 || ^18.16 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pump from 'pump';
import { toASCII } from 'punycode/';
import { pipeline } from 'readable-stream';
import PhishingDetector from 'eth-phishing-detect/src/detector';
import { WindowPostMessageStream } from '@metamask/post-message-stream';
import ObjectMultiplex from 'obj-multiplex';
import ObjectMultiplex from '@metamask/object-multiplex';

const MAX = Number.MAX_SAFE_INTEGER;

Expand Down Expand Up @@ -149,7 +149,7 @@ function start() {

// setup connectionStream multiplexing
const mux = new ObjectMultiplex();
pump(metamaskStream, mux, metamaskStream, (error) => [
pipeline(metamaskStream, mux, metamaskStream, (error) => [
console.error('Disconnected', error),
]);
const phishingSafelistStream = mux.createStream('metamask-phishing-safelist');
Expand Down
1 change: 0 additions & 1 deletion types/obj-multiplex.d.ts

This file was deleted.

3 changes: 3 additions & 0 deletions types/readable-stream.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'readable-stream' {
export { pipeline } from 'stream';
}
Loading