mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 21:08:34 +00:00
📎 Pin the graph console's G6 bundle to an exact version
The console loaded `@antv/g6@5` from jsDelivr, a floating major range, so the JavaScript served into the page could change without a Penpot release. Pin it to 5.1.1, the version the range resolves to today. Where the dependency finally belongs is an open question for review: vendored into `backend/resources`, declared in `frontend/package.json` if the console moves out of `/dbg`, or left on the CDN. Pinning removes the floating-code problem without pre-empting that decision. AI-assisted-by: mixed models
This commit is contained in:
parent
73bc22f8fb
commit
e6d7677ff7
@ -324,7 +324,7 @@ Graph Console
|
||||
</script>
|
||||
|
||||
{% if session %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/@antv/g6@5/dist/g6.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@antv/g6@5.1.1/dist/g6.min.js"></script>
|
||||
<script>
|
||||
(function () {
|
||||
const fileId = "{{session.file-id}}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user