Skip to content

changed pyodide version from 27.0 -> 27.7 - #55

Open
sharma-anuj wants to merge 450 commits into
tashifkhan:mainfrom
sharma-anuj:fix/setup-error
Open

sharma-anuj wants to merge 450 commits into
tashifkhan:mainfrom
sharma-anuj:fix/setup-error

Conversation

@sharma-anuj

Copy link
Copy Markdown

Fix timetable generation issue caused by Pyodide version mismatch

Issue

Timetable generation was failing due to a mismatch in the Pyodide version being loaded.

Fix

Updated the project setup to use the correct Pyodide version.

@vercel

vercel Bot commented Mar 20, 2026

Copy link
Copy Markdown

@sharma-anuj is attempting to deploy a commit to the tashifkhan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the client-side Pyodide loader to use the intended CDN version so timetable generation uses the correct runtime.

Changes:

  • Bump Pyodide CDN script URL from v0.27.0 to v0.27.7.
  • Bump Pyodide indexURL from v0.27.0 to v0.27.7.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/utils/pyodide.ts
Comment on lines 35 to 38
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/pyodide/v0.27.0/full/pyodide.js';
script.src = 'https://cdn.jsdelivr.net/pyodide/v0.27.7/full/pyodide.js';
script.async = true;
document.body.appendChild(script);

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

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

The Pyodide CDN URL is duplicated here (script.src) and again in loadPyodide({ indexURL }). To avoid future version mismatches (like the one this PR fixes), consider deriving both values from a single constant (e.g., a shared base URL/version) so they can’t drift.

Copilot uses AI. Check for mistakes.
Comment thread website/utils/pyodide.ts
Comment on lines 45 to 47
pyodideInstance = await window.loadPyodide({
indexURL: 'https://cdn.jsdelivr.net/pyodide/v0.27.0/full/',
indexURL: 'https://cdn.jsdelivr.net/pyodide/v0.27.7/full/',
fullStdLib: false,

Copilot AI Apr 13, 2026

Copy link

Choose a reason for hiding this comment

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

This changes the runtime-loaded Pyodide URL to v0.27.7, but the PWA runtime caching config (e.g., website/next.config.ts) and the generated service worker currently match v0.27.0 URLs. If left as-is, Pyodide assets may no longer be cached (and users with an existing SW may keep stale caches). Update the caching URL pattern(s) to the same version/base URL to keep behavior consistent.

Copilot uses AI. Check for mistakes.
@tashifkhan

Copy link
Copy Markdown
Owner

fair lets add this in a constants.ts or something then upgrade it i suppose
like lets have a single source of truth

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.

4 participants