Matthew Phillips
6313277137
Invalidate CC cache manifest when lockfile or config changes ( #10763 )
...
* Invalidate CC cache manifest when lockfile or config changes
* Close the handle and increment manifest version
* debug info
* Provide a reason for cache busting
* Handle compile metadata missing
* Try it this way
* Copy over cached assets as well
* Only restore chunks when cache is valid
* Better handle invalid caches
* Explain when there is no content manifest
* Add tests
* debugging
* Remove debugging
* Update packages/astro/src/core/build/plugins/plugin-content.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/astro/src/core/build/plugins/plugin-content.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Review comments
* Add chunks path constant
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-04-18 11:23:05 -04:00
Robin Gisler
0e22462d15
fix(sitemap): Trailing slashes on root url ( #10772 )
...
* add tests that reveal issue
* fix trailing slash root page issue
* add changeset
2024-04-18 08:09:25 +01:00
Emanuele Stoppa
40e8450671
chore: use Biome to format JS files ( #10788 )
...
* chore: configuration
* chore: update main commands
* chore: revert formatting package.json
* chore: rebase
2024-04-17 09:37:22 +01:00
Houston (Bot)
668d97319c
[ci] release ( #10777 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-16 17:07:50 +01:00
Rishi Raj Jain
a92e263beb
fix: use assetsDir in creating vite config ( #10732 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-04-16 21:23:50 +08:00
Houston (Bot)
b2ef6abfff
[ci] update lockfile ( #10791 )
...
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-04-15 21:13:11 +08:00
Farzad
1607face67
Fix @types/cookie dependency ( #10776 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-04-15 16:54:42 +08:00
Jason
6ebd81dbc4
lint: upgrade eslint to version 9 ( #10730 )
2024-04-15 16:05:10 +08:00
Houston (Bot)
3ff6b403db
[ci] release ( #10757 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-12 11:31:46 -04:00
Houston (Bot)
66bc1041d4
[ci] release ( #10739 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-11 13:24:47 +02:00
Emanuele Stoppa
440681e7b7
feat(i18n): manual routing ( #10193 )
...
* feat(i18n): manual routing
* one more function
* different typing
* tests
* fix merge
* throw error for missing middleware
* rename function
* fix conflicts
* lock file update
* fix options, error thrown and added tests
* rebase
* add tests
* docs
* lock file black magic
* increase timeout?
* fix regression
* merge conflict
* add changeset
* chore: apply suggestions
* apply suggestion
* Update .changeset/little-hornets-give.md
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* chore: address feedback
* fix regression of last commit
* update name
* add comments
* fix regression
* remove unused code
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: update reference
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: improve types
* fix regression in tests
* apply Sarah's suggestion
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 15:38:17 +01:00
Emanuele Stoppa
2e53b5fff6
feat: add origin check for CSRF protection ( #10678 )
...
* feat: add origin check for CSRF protection
* add tests
* chore: documentation
* changeset and grammar
* chore: add casing check
* split function
* better naming
* make the whole object experimental
* remove unused type
* update changeset
* manually apply Sarah's suggestions
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 14:53:32 +01:00
Houston (Bot)
0fec72b35c
[ci] release ( #10729 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 21:00:07 -04:00
Matthew Phillips
2d2ff58bb9
Fix db seeding when srcDir is root ( #10720 )
2024-04-09 09:11:32 -04:00
Houston (Bot)
f4f383d04e
[ci] release ( #10680 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 14:42:19 +08:00
Houston (Bot)
70ac71904f
[ci] update lockfile ( #10718 )
...
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-04-08 10:14:02 -04:00
Bjorn Lu
4ea042c388
Remove unused config in Vue JSX integration ( #10687 )
2024-04-08 13:35:34 +08:00
Houston (Bot)
e2a780a46d
[ci] release ( #10674 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-04 13:11:24 -04:00
Matthew Phillips
1662aa8a85
Fix compatibility for @astrojs/db with cloudflare ( #10677 )
...
* Fix compatibility for @astrojs/db with cloudflare
* Use a manual implementation
* Update lockfile
2024-04-04 12:42:47 -04:00
Houston (Bot)
0899d342cd
[ci] release ( #10670 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-03 16:52:33 -04:00
Ben Holmes
90cfade88c
feat: automatic Markdoc partial resolution ( #10649 )
...
* wip: react counter example
* feat: resolve markdoc partials by file path
* test: components within partials
* test: html within partial
* chore: changeset
* fix: respect user configured partials
* test: basic partials
* chore: lock
* chore: fix lock
* chore: minor -> patch
* fix: use --parallel for dev server timeout error
* refactor: move component tests to separate file
* fix: build indent fixture
* fix: check before addWatchFile
* refactor: rootRelative -> relativePartial
* deps: use workspace react integration
* refactor: split test files by fixture
* refactor: switch to preact to avoid react prod build error
* feat: use vite pluginContext
* fix: handle missing ./
* chore: bump timeout
2024-04-03 16:48:53 -04:00
Houston (Bot)
8ca8943ce2
[ci] release ( #10656 )
2024-04-03 22:42:23 +05:30
Arsh
55ddb2ba48
fix(app/node): include x-forwarded-port
header in url ( #10666 )
...
* fix(app/node): include `x-forwarded-port` header in url
* add changeset
* add test
2024-04-03 18:57:23 +05:30
Houston (Bot)
c3916b5206
[ci] release ( #10651 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 16:15:27 -04:00
Matthew Phillips
b1eda3dc5c
Fix building static sites with Astro DB ( #10655 )
...
* Fix building static sites with Astro DB
* Adding a changeset
* Try a different port range
2024-04-02 16:07:18 -04:00
Houston (Bot)
fd18a5dda9
[ci] release ( #10647 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 12:11:32 -04:00
Houston (Bot)
f7d6254f8f
[ci] release ( #10603 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 15:46:43 +08:00
Houston (Bot)
260f4fa191
[ci] update lockfile ( #10551 )
...
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-02 11:02:18 +08:00
Bjorn Lu
da2fb875fc
Make @astrojs/markdown-remark
a dep in @astrojs/markdoc
( #10632 )
2024-04-01 23:39:29 +08:00
Matthew Phillips
e31bea0704
Fixes issue with head content being pushed into body ( #10608 )
...
* Fixes issue with head content being pushed into body
* Update snapshot version
* Upgrade compiler version
2024-04-01 10:30:03 -04:00
Houston (Bot)
50cc5f01c7
[ci] release ( #10597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:09:23 -04:00
Houston (Bot)
636ba8c839
[ci] release ( #10588 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 13:27:19 -04:00
Erika
fbdc10f90f
fix(assets): Fixes assets generation when using custom paths and configs ( #10567 )
...
* fix(assets): Fixes assets generation when using custom paths and configs
* fix: tests
* fix: make sure remote files don't end up in nested folders by accident
* test: add a whole bunch of tests
* chore: changeset
2024-03-28 13:43:41 +01:00
Arsh
a05953538f
fix(dev): consider pages' route priority when matching request to a page ( #10582 )
...
* fix(dev): consider pages' route priority when matching request to a page
* add test
* add changeset
2024-03-28 02:07:02 +05:30
Matthew Phillips
f5df12cfeb
Provide guidance when --remote is omitted ( #10579 )
...
* Provide guidance when --remote is omitted
* Only restrict to server mode
* Use an AstroError
* Update code
2024-03-27 15:20:11 -04:00
Houston (Bot)
bb7707e171
[ci] release ( #10556 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 17:24:02 -04:00
Ben Holmes
b5a80405b9
Fix db.run()
type signature in production ( #10566 )
...
* deps: bump drizzle to latest patch
* chore: changeset
* feat(test): db.run output
2024-03-26 13:43:04 -04:00
Houston (Bot)
1cd2a74022
[ci] release ( #10522 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-22 12:35:50 -04:00
Matthew Phillips
6576f5d458
Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime ( #10533 )
...
* Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime
* Add changeset
* Fix build
2024-03-22 11:52:38 -04:00
Houston (Bot)
fdceed5889
[ci] release ( #10503 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 20:46:06 +05:30
Arsh
cfbaa8a767
deprecation(vercel): vercel-edge-middleware.js file ( #10476 )
...
* deprecation(vercel): `vercel-edge-middleware.js` file
* add changeset
* `Astro.locals.waitUntil()` -> `Astro.locals.vercel.edge.waitUntil()`
* export edge locals interface
2024-03-20 20:03:17 +05:30
Erika
8e4e554cc2
chore: update Babel version ( #10504 )
...
* chore: update Babel version
* Create sharp-cobras-drive.md
2024-03-20 14:43:36 +01:00
Ben Holmes
f0fc78c873
db: expose isDbError()
utility ( #10498 )
...
* feat: expose isDbError
* test: foreign key constraint error detection
* fix(test); use isDbError
* chore: changeset
2024-03-20 07:27:48 -04:00
Houston (Bot)
17b4991cff
[ci] release ( #10488 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 08:41:00 +00:00
James Garbutt
2ebcf94d0a
chore(db): Add missing github-slugger dependency & tests ( #10405 )
...
* chore: add missing github-slugger dependency
* test: add column-queries data loss tests
* chore: remove unused vars
* test: assert length rather than message content
2024-03-19 17:10:33 +00:00
Ben Holmes
ad57a02c33
db: Expose aggregation helpers ( #10479 )
...
* deps: drizzle 0.30
* feat: expose drizzle aggregation helpers
* chore: changeset
2024-03-19 08:56:48 +00:00
Houston (Bot)
0ddc327ee8
[ci] release ( #10471 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Arsh
fcece36586
fix(rendering): allow framework renders to be cancelled ( #10448 )
2024-03-18 19:29:24 +05:30
Houston (Bot)
a614923a3f
[ci] update lockfile ( #10472 )
...
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-03-18 21:06:23 +08:00
Houston (Bot)
4dcfa2bd90
[ci] release ( #10453 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-15 16:24:46 -04:00