Skip to content

v3.0.6 #26

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

Merged
merged 8 commits into from
Nov 15, 2024
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
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ZIP_FIREFOX_FILE="extension.firefox.zip"
HASH_ALG="sha384"

.PHONY:
install clean all lint dev prod zip_chrome zip_firefox
install clean all lint test dev prod zip_chrome zip_firefox
tune2chrome tune2firefox

install:
Expand All @@ -17,23 +17,27 @@ clean:

all:
make lint
make test
make prod
make zip_chrome
make zip_firefox

lint:
npx prettier . --write
npx tsc -noEmit
pnpm exec prettier . --write
pnpm exec tsc -noEmit

test:
pnpm exec tsx --test

dev:
NODE_OPTIONS="--loader=ts-node/esm" \
npx webpack --progress --watch --mode=development
NODE_OPTIONS="--import=tsx --trace-deprecation" \
pnpm exec webpack --progress --watch --mode=development

prod:
rm -rf ./bundle/js/
NODE_OPTIONS="--loader=ts-node/esm --no-warnings=ExperimentalWarning" \
NODE_OPTIONS="--import=tsx" \
NODE_ENV="production" \
npx webpack --mode=production
time pnpm exec webpack --mode=production

zip_chrome:
make tune2chrome
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ console.diffLeft(Date.now());
console.diffRight(Date.now());
```

- **console.diff\_(\*)** - uses deprecated `nativeClone` serialization method, based of JSON.parse(JSON.stringify(...)), left for backward compatibility

### Typescript

Global Console interface declaration for quick copy/paste when used from typescript:
Expand Down Expand Up @@ -146,7 +144,7 @@ Historically, left side represents the old state and right side the new state.
Requires

- Linux
- node 20.10 (LTS)
- node 22.11 (LTS)

```sh
make install # to install dependencies
Expand Down
4 changes: 2 additions & 2 deletions manifest.chrome.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"manifest_version": 3,
"name": "console.diff(...)",
"version": "3.0.5",
"version": "3.0.6",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlCx2Bl0li+3idvfrH9cQL/MzphafGFqMUA2P+0vbyhwxsxWl0llOaGQbkirX5qCoAVHoUCPqu3hCjpVCv35igPbfqDs5bdLZZmXt2F0HjEQnWI/eZKd9IKcKYMplEeL2BodmpU02VrP1UnUzQHZeeMWk9ybgWOqCimkwliILVubRj5dxNB9AidLwO4Z5iGq/OvW9AJMYdxKxrLP2lF6/GGNcCBg+iCJZwlQOhFB9LbUjytT4ws3bIEX4b5zmWLqGKR1NiZfGug2eCWXt9oEKg2WkbXmBBzFKqxnM/bBUrVR29N9qNgx0f42qnyhsW3Bo4kPzE3d0asXCV5nofLTLEwIDAQAB",
"description": "Compare objects in memory with console.diff(old, new) devtools function",
"minimum_chrome_version": "100.0",
"homepage_url": "https://github.com/zendive/jsdiff",
"homepage_url": "https://github.com/zendive/jsdiff#readme",
"author": "calexblock@gmail.com",
"permissions": ["storage"],
"host_permissions": ["*://*/*"],
Expand Down
4 changes: 2 additions & 2 deletions manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "jsdiff.diff(...)",
"version": "3.0.5",
"version": "3.0.6",
"description": "Compare objects in memory with jsdiff.diff(old, new) devtools function",
"minimum_chrome_version": "100.0",
"browser_specific_settings": {
Expand All @@ -10,7 +10,7 @@
"strict_min_version": "120.0"
}
},
"homepage_url": "https://github.com/zendive/jsdiff",
"homepage_url": "https://github.com/zendive/jsdiff#readme",
"author": "calexblock@gmail.com",
"permissions": ["storage", "devtools", "activeTab"],
"host_permissions": ["<all_urls>"],
Expand Down
64 changes: 20 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,28 @@
{
"name": "jsdiff",
"version": "3.0.5",
"description": "Chrome extension to compare objects in memory with console.diff(old, new) devtools function",
"private": true,
"scripts": {
"dev": "make dev",
"prod": "make all"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zendive/jsdiff.git"
},
"keywords": [
"devtools",
"diff",
"chrome",
"extension"
],
"author": "Block Alexander",
"license": "MIT",
"bugs": {
"url": "https://github.com/zendive/jsdiff/issues"
},
"homepage": "https://github.com/zendive/jsdiff#readme",
"type": "module",
"devDependencies": {
"@types/chrome": "0.0.259",
"@types/diff-match-patch": "^1.0.36",
"@types/firefox-webext-browser": "120.0.0",
"@types/webpack-bundle-analyzer": "4.6.3",
"@vue/compiler-sfc": "3.4.15",
"@types/chrome": "0.0.280",
"@types/diff-match-patch": "1.0.36",
"@types/firefox-webext-browser": "120.0.4",
"@types/webpack-bundle-analyzer": "4.7.0",
"@vue/compiler-sfc": "3.5.12",
"clean-webpack-plugin": "4.0.0",
"css-loader": "6.10.0",
"diff-match-patch": "^1.0.5",
"esbuild": "0.20.0",
"esbuild-loader": "4.0.3",
"jsondiffpatch": "^0.6.0",
"pinia": "^2.1.7",
"prettier": "3.2.4",
"sass": "1.70.0",
"sass-loader": "14.1.0",
"style-loader": "3.3.4",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"vue": "3.4.15",
"css-loader": "7.1.2",
"diff-match-patch": "1.0.5",
"esbuild": "0.24.0",
"esbuild-loader": "4.2.2",
"jsondiffpatch": "0.6.0",
"pinia": "2.2.6",
"prettier": "3.3.3",
"sass": "1.80.6",
"sass-loader": "16.0.3",
"style-loader": "4.0.0",
"tsx": "4.19.2",
"typescript": "5.6.3",
"vue": "3.5.12",
"vue-loader": "17.4.2",
"webpack": "5.90.0",
"webpack-bundle-analyzer": "4.10.1",
"webpack": "5.96.1",
"webpack-bundle-analyzer": "4.10.2",
"webpack-cli": "5.1.4"
},
"pnpm": {
Expand Down
Loading