Skip to content

Commit

Permalink
Update OpenLayers, make unpkg and jsdelivr dependency updateable
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 10, 2024
1 parent 096f65d commit 40fbafb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
],
datasourceTemplate: 'github-tags',
},
/** Manage unpkg */
{
fileMatch: ['.*\\.html$'],
matchStrings: ['unpkg\\.com/(?<depName>[^@]+)@(?<currentValue>[^/]+)'],
datasourceTemplate: 'npm',
},
/** Manage jsdelivr */
{
fileMatch: ['.*\\.html$'],
matchStrings: ['cdn\\.jsdelivr\\.net/npm/(?<depName>[^@]+)@(?<currentValue>[^/]+)'],
datasourceTemplate: 'npm',
},
],
packageRules: [
/** Docker images versioning */
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/sbrunner/integrity-updater
rev: 0.1.0
hooks:
- id: integrity-updater
- repo: https://github.com/mheap/json-schema-spell-checker
rev: main
hooks:
Expand Down
8 changes: 4 additions & 4 deletions tilecloud_chain/templates/openlayers.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
/>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/ol-layerswitcher.css"
integrity="sha384-Vzqe9imyvsl257o2YDNSjmhHFjs8kp3JxhgoSHGdXYy9/J7N1MO8kfTHV/toayP8"
href="https://cdn.jsdelivr.net/npm/[email protected]/ol.css"
integrity="sha384-PpyAaiUdY+s8ycCAmYsYkyq9cQgPWrtjtiv4/NzjY5FHo+7R5wdgdpqPAOl+No0J"
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
Expand All @@ -59,8 +59,8 @@
<body>
<div id="map"></div>
<script
src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.9.0/build/ol.js"
integrity="sha384-zy2tAp+Or7rXBFLVmVGdB0/dIR3EEaPRx0CefF4P2qjsxqQ4gUJZXeD2cSAunMGz"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"
integrity="sha384-ginU7U5lJ0DtYjPE3de0rz6w4YtkmQDW3pbsZBFbOzhX+Hnd9kY4K2vrL2iiqXed"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
Expand Down

0 comments on commit 40fbafb

Please sign in to comment.