Several minor improvements to typing and misc.

- Improved schema validation
- Move username parsing and other validators to schema types
- Fix astro check command
- Add JSON/YAML schema validation for data collections
- Update licenses
- Remove deployment script in favor of rsync
- Prevent unsanitized input in export-story script
- Change "eng" language to "en", per BCP47
- Clean up i18n keys and add aria attributes
- Improve MastodonComments behavior on no-JS browsers
This commit is contained in:
Bad Manners 2024-08-07 19:25:50 -03:00
parent fe908a4989
commit 7bb8a952ef
54 changed files with 1005 additions and 962 deletions

View file

@ -1,33 +1,32 @@
{
"name": "gallery-badmanners-xyz",
"type": "module",
"version": "1.6.0",
"version": "1.6.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "npm run check && astro build",
"build": "astro check && astro build",
"preview": "astro preview",
"sync": "astro sync",
"check": "astro check --minimumSeverity warning",
"check": "astro check",
"astro": "astro",
"prettier": "prettier --write .",
"deploy-lftp": "dotenv tsx scripts/deploy-lftp.ts --",
"export-story": "tsx scripts/export-story.ts"
},
"dependencies": {
"@astrojs/check": "^0.8.2",
"@astrojs/check": "^0.9.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/tailwind": "^5.1.0",
"@astropub/md": "^1.0.0",
"@tailwindcss/typography": "^0.5.13",
"astro": "^4.12.2",
"astro": "^4.13.1",
"astro-pagefind": "^1.6.0",
"github-slugger": "^2.0.0",
"marked": "^12.0.1",
"marked": "^12.0.2",
"pagefind": "^1.1.0",
"reading-time": "^1.5.0",
"sanitize-html": "^2.13.0",
"tailwindcss": "^3.4.6",
"tailwindcss": "^3.4.7",
"tiny-decode": "^0.1.3",
"typescript": "^5.5.4"
},
@ -39,6 +38,6 @@
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.5",
"tsx": "^4.16.2"
"tsx": "^4.16.5"
}
}