Skip to content

Page turner dependency updates#201

Merged
carylwyatt merged 8 commits intomainfrom
apr-updates
Apr 15, 2026
Merged

Page turner dependency updates#201
carylwyatt merged 8 commits intomainfrom
apr-updates

Conversation

@carylwyatt
Copy link
Copy Markdown
Member

@carylwyatt carylwyatt commented Apr 13, 2026

Suspiciously, the upgrade to vite 6 worked out of the box. I tweaked the config a bit to match the changes I made for firebird, but other than that, it seems fine. All the security vulnerability messages are gone.

I updated playwright and updated the playwright docker service to match the updated version. Some of my local tests failed because of imgsrv giving me "Forbidden" 403 errors, but that happens to me locally sometimes. I'll wait and see if it passes here.

I want to test this on dev-3 before merging into main, but I have the pt error handling stuff staged there at the moment. I'll get the two branches merged on dev-3 shortly and update this. Update: tested on dev-3 and it looks great!

Edit to add: I went ahead and updated to vite 7. Tests passed and the build on dev-3 looks good! I will wait on updating to vite 8 since there are some significant changes, but maybe it will not be so bad. I'll try it out during the next dependency update Monday!

@carylwyatt carylwyatt requested a review from aelkiss April 13, 2026 19:42
Copy link
Copy Markdown
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

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

Looks great.

There was something we had to do in firebird-common with vite to generate the css file with the expected name, but IIRC you thought there might be another option for handling that in vite 6. It doesn't look like we had a similar issue here in pageturner though, and firebird is still on vite 5? https://github.com/hathitrust/firebird-common/blob/main/vite.config.js#L38

@carylwyatt
Copy link
Copy Markdown
Member Author

carylwyatt commented Apr 14, 2026

There was something we had to do in firebird-common with vite to generate the css file with the expected name, but IIRC you thought there might be another option for handling that in vite 6. It doesn't look like we had a similar issue here in pageturner though, and firebird is still on vite 5? https://github.com/hathitrust/firebird-common/blob/main/vite.config.js#L38

@aelkiss When I upgraded firebird to vite 6, I hoped I could get rid of the custom plugins that re-write the manifest asset file names, but that didn't end up happening. I made a small change to the asset name plugin here in page turner (similar to the change I did in firebird when upgrading to vite 6), but other than that, there are no other changes. I looked at the breaking changes list in the release notes for vite 7 to make sure our build wouldn't break, but I didn't look in to new features to see if/how the config could be refined.

Firebird's vite config is much more complicated thanks to storybook, so this was a simple upgrade in comparison.

@carylwyatt
Copy link
Copy Markdown
Member Author

@aelkiss Well, I take that back. I deleted the custom plugin and the dist folder, and pt/vite built the asset files just fine without it. I'll push a new commit with the updated config and test it on dev-3!

@carylwyatt
Copy link
Copy Markdown
Member Author

I tested the updated config on dev-3, and everything looks great.
I also went looking for info on the bootstrap/node-sass situation since that's another ugly workaround, and they did migrate to Sass modules... in version 6, which hasn't been released and has no release date in sight.

@carylwyatt carylwyatt merged commit 56d8ef0 into main Apr 15, 2026
2 checks passed
@carylwyatt carylwyatt deleted the apr-updates branch April 15, 2026 19:24
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.

2 participants