diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 4722a96..5e0b4b9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,13 +25,11 @@ jobs: cache: npm registry-url: https://registry.npmjs.org - name: Install dependencies - run: npm ci --ignore-scripts --no-audit --fund-no + run: npm ci --no-audit --no-fund - name: Run tests run: npm test - name: Build Package run: npm run build --if-present - name: Publish to npm run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.nvmrc b/.nvmrc index f3f52b4..2165135 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.9.0 +24.10.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 52d9b53..02737d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [v1.0.2] - 2026-03-05 + +### Added +- Add `title`, `description`, and `url` to `share` in root commands + +### Changed +- Update node to 24.10.0 +- Update npm publishing +- Update dependencies + ## [v1.0.1] - 2025-10-08 ### Added diff --git a/home.js b/home.js index 3c72296..4a6614a 100644 --- a/home.js +++ b/home.js @@ -1,7 +1,18 @@ import { COMMANDS, ROOT_COMMANDS } from './consts.js'; import { getCommandWithArgs } from './utils.js'; +import { Importmap } from '@shgysk8zer0/importmap'; + +const importmap = new Importmap(); +await importmap.importLocalPackage(); +const integrity = await importmap.getIntegrity(); const script = `import { observeCommands, initRootCommands, registerRootCommand, registerCommand } from '/commands.js' +import properties from '@aegisjsproject/styles/css/properties.css' with { type: 'css' }; +import theme from '@aegisjsproject/styles/css/theme.css' with { type: 'css' }; +import btn from '@aegisjsproject/styles/css/button.css' with { type: 'css' }; +import misc from '@aegisjsproject/styles/css/misc.css' with { type: 'css' }; + +document.adoptedStyleSheets = [properties, theme, btn, misc]; registerRootCommand('--menu', () => document.getElementById('menu').showPopover()); registerRootCommand('--help', () => document.getElementById('help').showPopover()); registerRootCommand('--log', (event, ...args) => console.log({ event, args })); @@ -26,7 +37,7 @@ const styleSRI = await sri(style); const headers = new Headers({ 'Content-Type': 'text/html', - 'Content-Security-Policy': `default-src 'self'; script-src 'self' '${scriptSRI}'; style-src '${styleSRI}'; media-src https://0eff4f4c-7f45-405c-8cf6-f7a3b3c1f07e.mdnplay.dev;`, + 'Content-Security-Policy': `default-src 'self'; script-src 'self' '${scriptSRI}' '${integrity}'; style-src ${importmap.resolve('@aegisjsproject/styles/css/')} '${styleSRI}'; media-src https://0eff4f4c-7f45-405c-8cf6-f7a3b3c1f07e.mdnplay.dev; trusted-types aegis-sanitizer#html; require-trusted-types-for 'script';`, }); @@ -36,6 +47,7 @@ const doc = ` + ${await importmap.getScript()} @@ -43,20 +55,21 @@ const doc = `
This is a test of the popover API.
Lorem Ipsum
- +