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

WD-8065 - Update facades for Juju 3.3 #121

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

huwshimi
Copy link
Member

@huwshimi huwshimi commented Jan 5, 2024

Done

  • Updated the schema.json for Juju 3.3.
  • Built the new facades.
  • Updated the package version.

Details

https://warthogs.atlassian.net/browse/WD-8065

@@ -271,7 +271,7 @@ class Client {
"user-data": "",
};
const url = this._transport._ws.url;
const origin = new URL(url).origin;
const origin = url;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a drive-by fix to improve macaroon handling with the new JIMM.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything inside the api folder is built automatically by the script.

README.md Outdated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are made automatically by the script.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is copied from Juju.

"description": "Juju API client",
"main": "dist/api/client.js",
"types": "dist/api/client.d.ts",
"type": "module",
"scripts": {
"build": "tsc",
"clean": "rm -rf node_modules dist",
"generate-facades": "SCHEMA=generator/schema/schema.json JUJU_VERSION=$(cat generator/schema/juju-version.txt) JUJU_GIT_SHA=$(cat generator/schema/juju-git-sha.txt) ts-node generator/index.ts",
"generate-facades": "SCHEMA=generator/schema/schema.json JUJU_VERSION=$(cat generator/schema/juju-version.txt) JUJU_GIT_SHA=$(cat generator/schema/juju-git-sha.txt) node --no-warnings=ExperimentalWarning --loader ts-node/esm generator/index.ts",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was required as ts-node was having issues with Node > v16.

Copy link
Contributor

@vladimir-cucu vladimir-cucu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything works as expected when testing with Juju Dashboard 🚀

@huwshimi huwshimi merged commit 3c0e170 into juju:master Jan 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants