Skip to content

Commit

Permalink
Bump Upscaler version (#1192)
Browse files Browse the repository at this point in the history
* Add test command and bump version

* When running test mode, do not use watch

* Update versions across examples

* Fix example script

* Examples should install latest
  • Loading branch information
thekevinscott authored Oct 9, 2023
1 parent e74eb91 commit 52bffb3
Show file tree
Hide file tree
Showing 31 changed files with 68 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-thick": "latest",
"seedrandom": "^3.0.5",
"upscaler": "workspace:1.0.0-beta.17"
"upscaler": "workspace:*"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
4 changes: 0 additions & 4 deletions examples/basic-umd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
},
"author": "Kevin Scott",
"license": "MIT",
"dependencies": {
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
},
"engines": {
"npm": ">8.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/cancel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"jpeg-js": "^0.4.4",
"mock-aws-s3": "^4.0.2",
"nock": "^13.3.2",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-model-configurations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@tensorflow/tfjs": "^4.8.0",
"esbuild": "^0.18.20",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.17"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/memory-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-thick": "1.0.0-beta.8",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs-custom-file-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@tensorflow/tfjs-node": "~4.8.0",
"express": "4.18.2",
"seedrandom": "3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@upscalerjs/esrgan-thick": "1.0.0-beta.11",
"express": "4.18.2",
"seedrandom": "3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@tensorflow/tfjs-node": "~4.8.0",
"express": "4.16.4",
"seedrandom": "3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/patch-sizes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-scripts": "5.0.0",
"seedrandom": "^3.0.5",
"typescript": "^5.1.6",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"scripts": {
"dev": "react-scripts start"
Expand Down
2 changes: 1 addition & 1 deletion examples/self-hosting-models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/tensors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/warmup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/webcam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"@upscalerjs": {
"guide": {
Expand Down
2 changes: 1 addition & 1 deletion examples/webworker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tensorflow/tfjs": "~4.8.0",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.14"
"upscaler": "latest"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion models/default-model/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/default-model": "1.0.0-beta.7",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.8"
"upscaler": "1.0.0-beta.18"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-legacy/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-legacy": "1.0.0-beta.9",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.8"
"upscaler": "1.0.0-beta.18"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-medium/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-medium": "1.0.0-beta.7",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.8"
"upscaler": "1.0.0-beta.18"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-slim/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-slim": "1.0.0-beta.7",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.8"
"upscaler": "1.0.0-beta.18"
},
"engines": {
"npm": ">8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-thick/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@tensorflow/tfjs": "~4.8.0",
"@upscalerjs/esrgan-thick": "1.0.0-beta.7",
"seedrandom": "^3.0.5",
"upscaler": "1.0.0-beta.8"
"upscaler": "1.0.0-beta.18"
},
"engines": {
"npm": ">8.0.0"
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@
"command": "git add packages/upscalerjs/src/shared/constants.ts *examples/*/package.json* && git commit -m \"Updating CDN && example versions\" --no-verify"
},
"example:start": {
"command": "pnpm --filter @upscalerjs/scripts example:start"
"command": "pnpm --filter @upscalerjs/scripts example:start",
"dependencies": [
"./internals/common:build",
"./packages/upscalerjs:build"
]
},
"lint": {
"command": "pnpm --parallel --filter=!./models/**/dist/** lint"
Expand Down
2 changes: 1 addition & 1 deletion packages/upscalerjs-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Wrapper for UpscalerJS",
"main": "index.js",
"dependencies": {
"upscaler": "workspace:1.0.0-beta.17"
"upscaler": "workspace:*"
},
"author": "",
"license": "MIT"
Expand Down
8 changes: 5 additions & 3 deletions packages/upscalerjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "upscaler",
"version": "1.0.0-beta.17",
"version": "1.0.0-beta.18",
"description": "Enhance Images with Javascript and AI. Increase resolution, retouch, denoise, and more. Open Source, Browser and Node Compatible, MIT License.",
"exports": {
"./node": {
Expand Down Expand Up @@ -175,6 +175,9 @@
"lint": {
"command": "eslint -c .eslintrc.js src --ext .ts"
},
"test": {
"command": "pnpm test:unit:browser:playwright && pnpm test:unit:browser:vite -- --run && pnpm test:unit:node -- --run"
},
"test:unit:browser:playwright": {
"command": "playwright-test --config playwright.config.json"
},
Expand Down Expand Up @@ -203,8 +206,7 @@
"prepublishOnly": "wireit",
"format": "wireit",
"lint": "wireit",
"lint:browser": "wireit",
"lint:node": "wireit",
"test": "wireit",
"test:unit:browser:playwright": "wireit",
"test:unit:browser:vite": "wireit",
"test:unit:node": "wireit",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 52bffb3

Please sign in to comment.