Skip to content

Commit

Permalink
chore(deps): Upgrade Kaoto UI to 0.5.0 and backend to 0.5.1
Browse files Browse the repository at this point in the history
- the web-worker must be added as dev dependency. Based on this comment
kieler/elkjs#142 (comment) this
sounds like an ugly workaround but I'm not familiar enough with webpack
and yarn to have other ideas.

/!\ EIPs are not working:
data:image/gif;R0lG…:1
 GET data:image/gif;R0lGODlhUgAxAHcAMSH+GlNvZnR3YXJlOiBNaWNyb3NvZnQgT2ZmaWNlACH5…qr5Ky9r1ynUGkqaa7duGFj3t071ehbvoDt+G3Js7BhEXlxHl5sOLEFf5Aj93uxT7Lly7kSAAA7
net::ERR_INVALID_URL

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Dec 14, 2022
1 parent 7ce3f0f commit 9a0b7ee
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 268 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 0.3.0

- Keep `Kaoto backend` output log available when Kaoto backend native executable cannot be launched. It allows to have more information what can be the issue.
- Upgrade embedded Kaoto [UI](https://github.com/KaotoIO/kaoto-ui/releases/tag/v0.5.0) and [backend](https://github.com/KaotoIO/kaoto-backend/releases/tag/v0.5.1) to 0.5.1

# 0.2.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

## Versions under the hood

Kaoto UI is embedded in version 0.4.3. Kaoto backend is launched natively using tag 0.4.3.
Kaoto UI is embedded in version 0.5.0. Kaoto backend is launched natively using version 0.5.1.

## Limitations

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test:it:clean": "rimraf ./test-resources && rimraf ./out && rimraf *.vsix"
},
"dependencies": {
"@kaoto/kaoto-ui": "0.4.3",
"@kaoto/kaoto-ui": "0.5.0",
"@kie-tools-core/backend": "^0.25.0",
"@kie-tools-core/editor": "^0.25.0",
"@kie-tools-core/i18n": "^0.25.0",
Expand Down Expand Up @@ -134,6 +134,7 @@
"url-loader": "^4.1.1",
"vsce": "^2.11.0",
"vscode-extension-tester": "^5.1.0",
"web-worker": "^1.2.0",
"webpack": "5.73.0",
"webpack-cli": "^4.10.0",
"webpack-merge": "^5.8.0"
Expand Down
3 changes: 2 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const fs = require('fs');
const os = require('os');

const downloadFile = (async (url, path) => {
console.log(`Will fetch backend binary from ${url}`);
const res = await fetch(url);
const fileStream = fs.createWriteStream(path);
await new Promise((resolve, reject) => {
Expand All @@ -17,7 +18,7 @@ const downloadKaotoBackendNativeExecutable = (backendVersion, platform, extensio
downloadFile(`https://github.com/KaotoIO/kaoto-backend/releases/download/${backendVersion}/kaoto-${platform}`, `./binaries/kaoto-${platform}${extension}`);
}

const backendVersion = "v0.4.3";
const backendVersion = "v0.5.1";
downloadKaotoBackendNativeExecutable(backendVersion, 'linux-amd64', '');
downloadKaotoBackendNativeExecutable(backendVersion, 'macos-amd64', '');
downloadKaotoBackendNativeExecutable(backendVersion, 'windows-amd64', '.exe');
Loading

0 comments on commit 9a0b7ee

Please sign in to comment.