Skip to content

fix(website): move the demo to magika 1.0.0 (#1613) - #1648

Open
volt69506-eng wants to merge 2 commits into
google:mainfrom
volt69506-eng:fix/website-demo-magika-version
Open

volt69506-eng wants to merge 2 commits into
google:mainfrom
volt69506-eng:fix/website-demo-magika-version

Conversation

@volt69506-eng

Copy link
Copy Markdown

Closes #1613

What

website-ng/package.json declared "magika": "^0.4.0". A caret on 0.x only admits 0.4.x, so the demo has been pinned to 0.4.0 since it landed and will never pick up 1.x. The issue notes this is currently harmless in output, but it will drift at the next JS release because scripts/check_documentation.py compares the Demo Website row against npm's latest version.

Change

  • website-ng/package.json: magika → ^1.0.0.
  • website-ng/package-lock.json: regenerated with npm install --package-lock-only --ignore-scripts --no-audit --no-fund; the only changed entry is node_modules/magika 0.4.0 → 1.0.0 (8 lines).

No demo source was changed: the issue verifies both releases expose the same 214 content types with standard_v3_3, which the demo already serves from /magika/models/standard_v3_3/.

I deliberately left the optional check_documentation.py idea from the issue out of this PR: that is a separate change to the docs checker and should be reviewed on its own.

TDD

test: commit first: python/tests/test_website_demo_dependency.py asserts the declared range and the lockfile resolve to >= 1.0.0. It failed on current main with ^0.4.0 / 0.4.0 and passes after this change (2 passed). The test uses only stdlib, so it needs no new dependency in the Python suite.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

website: Web Demo still runs npm magika 0.4.0 (^0.4.0 never picks up 1.x)

1 participant