Skip to content

Commit

Permalink
Merge pull request #47 from shishkin/renovate/major-astro
Browse files Browse the repository at this point in the history
chore(deps): update astro (major)
  • Loading branch information
shishkin authored Sep 14, 2023
2 parents 83579f3 + 56594c2 commit 4442717
Show file tree
Hide file tree
Showing 8 changed files with 14,376 additions and 10,408 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ const q = Astro.url.searchParams.get("q") ?? undefined;
<Search query={q} />
```

See [search.astro](./src/pages/search.astro) for a full example.
See [prefilled.astro](./src/pages/prefilled.astro) for a full example.
24,746 changes: 14,357 additions & 10,389 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions packages/astro-pagefind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@
"author": "Sergey Shishkin <sergey@shishkin.org>",
"license": "MIT",
"peerDependencies": {
"astro": "^2.0.4"
"astro": "^2.0.4 || ^3.0.0"
},
"devDependencies": {
"@astrojs/check": "0.2.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"@types/semantic-release": "20.0.1",
"astro": "2.10.15",
"astro": "3.1.0",
"semantic-release": "21.1.1",
"typescript": "5.2.2"
},
Expand Down
6 changes: 1 addition & 5 deletions packages/example/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import { defineConfig } from "astro/config";
import pagefind from "astro-pagefind";
import node from "@astrojs/node";

export default defineConfig({
base: "/something/",
output: "hybrid",
output: "static",
build: {
format: "file",
},
integrations: [pagefind()],
adapter: node({
mode: "standalone",
}),
});
7 changes: 2 additions & 5 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/cloudflare": "6.8.1",
"@astrojs/netlify": "2.6.0",
"@astrojs/node": "5.3.6",
"@astrojs/vercel": "3.8.2",
"astro": "2.10.15",
"@astrojs/check": "0.2.0",
"astro": "3.1.0",
"typescript": "5.2.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/example/src/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ layout: ~/layouts/Main.astro

[Astro](https://astro.build) integration for [Pagefind](https://pagefind.app/) static site search.

Example of [Pre-filled Search](search?q=page).
Example of [Pre-filled Search](prefilled).
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
---
import Search from "astro-pagefind/components/Search";
export const prerender = false;
const q = Astro.url.searchParams.get("q") ?? undefined;
/**
* In SSR mode use this instead:
*
* ```ts
* export const prerender = false;
* const q = Astro.url.searchParams.get("q") ?? undefined;
* ```
*/
const q = "astro";
---

<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", ":semanticCommits", "helpers:disableTypesNodeMajor"],
"extends": ["config:recommended", ":semanticCommits", "helpers:disableTypesNodeMajor"],
"timezone": "Europe/Berlin",
"schedule": ["every weekend on the 3rd week of the month"],
"automergeType": "branch",
Expand Down

0 comments on commit 4442717

Please sign in to comment.