Skip to content

Commit

Permalink
updating deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-sull committed Sep 4, 2023
1 parent 0cbce98 commit 62184f2
Show file tree
Hide file tree
Showing 7 changed files with 7,940 additions and 976 deletions.
61 changes: 31 additions & 30 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,9 @@ declare module 'astro:content' {

declare module 'astro:content' {
export { z } from 'astro/zod';
export type CollectionEntry<C extends keyof AnyEntryMap> = AnyEntryMap[C][keyof AnyEntryMap[C]];

// TODO: Remove this when having this fallback is no longer relevant. 2.3? 3.0? - erika, 2023-04-04
/**
* @deprecated
* `astro:content` no longer provide `image()`.
*
* Please use it through `schema`, like such:
* ```ts
* import { defineCollection, z } from "astro:content";
*
* defineCollection({
* schema: ({ image }) =>
* z.object({
* image: image(),
* }),
* });
* ```
*/
export const image: never;
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
export type CollectionEntry<C extends keyof AnyEntryMap> = Flatten<AnyEntryMap[C]>;

// This needs to be in sync with ImageMetadata
export type ImageFunction = () => import('astro/zod').ZodObject<{
Expand All @@ -54,19 +37,16 @@ declare module 'astro:content' {
import('astro/zod').ZodLiteral<'tiff'>,
import('astro/zod').ZodLiteral<'webp'>,
import('astro/zod').ZodLiteral<'gif'>,
import('astro/zod').ZodLiteral<'svg'>
import('astro/zod').ZodLiteral<'svg'>,
]
>;
}>;

type BaseSchemaWithoutEffects =
| import('astro/zod').AnyZodObject
| import('astro/zod').ZodUnion<import('astro/zod').AnyZodObject[]>
| import('astro/zod').ZodUnion<[BaseSchemaWithoutEffects, ...BaseSchemaWithoutEffects[]]>
| import('astro/zod').ZodDiscriminatedUnion<string, import('astro/zod').AnyZodObject[]>
| import('astro/zod').ZodIntersection<
import('astro/zod').AnyZodObject,
import('astro/zod').AnyZodObject
>;
| import('astro/zod').ZodIntersection<BaseSchemaWithoutEffects, BaseSchemaWithoutEffects>;

type BaseSchema =
| BaseSchemaWithoutEffects
Expand Down Expand Up @@ -97,7 +77,7 @@ declare module 'astro:content' {

export function getEntryBySlug<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
// Note that this has to accept a regular string too, for SSR
Expand All @@ -122,7 +102,7 @@ declare module 'astro:content' {

export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
Expand All @@ -131,7 +111,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {})
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
Expand All @@ -140,7 +120,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
slug: E
Expand All @@ -149,7 +129,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {})
E extends keyof DataEntryMap[C] | (string & {}),
>(
collection: C,
id: E
Expand Down Expand Up @@ -455,6 +435,13 @@ declare module 'astro:content' {
collection: "notes";
data: InferEntrySchema<"notes">
} & { render(): Render[".md"] };
"boring-tech-product-market-fit.md": {
id: "boring-tech-product-market-fit.md";
slug: "boring-tech-product-market-fit";
body: string;
collection: "notes";
data: InferEntrySchema<"notes">
} & { render(): Render[".md"] };
"dom-as-state.md": {
id: "dom-as-state.md";
slug: "dom-as-state";
Expand Down Expand Up @@ -504,6 +491,20 @@ declare module 'astro:content' {
collection: "notes";
data: InferEntrySchema<"notes">
} & { render(): Render[".md"] };
"risk-of-ai.md": {
id: "risk-of-ai.md";
slug: "risk-of-ai";
body: string;
collection: "notes";
data: InferEntrySchema<"notes">
} & { render(): Render[".md"] };
"russia-suwalki-gap.md": {
id: "russia-suwalki-gap.md";
slug: "russia-suwalki-gap";
body: string;
collection: "notes";
data: InferEntrySchema<"notes">
} & { render(): Render[".md"] };
"self-host-webfinger.md": {
id: "self-host-webfinger.md";
slug: "self-host-webfinger";
Expand Down
2 changes: 1 addition & 1 deletion _cache/webmentions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastFetched": "2023-08-18T14:28:51.714Z",
"lastFetched": "2023-09-04T12:35:09.513Z",
"children": [
{
"type": "entry",
Expand Down
27 changes: 12 additions & 15 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,21 @@ import webfinger from 'astro-webfinger'
/* https://docs.netlify.com/configure-builds/environment-variables/#read-only-variables */
import mdx from '@astrojs/mdx'
const NETLIFY_PREVIEW_SITE =
process.env.CONTEXT !== 'production' && process.env.DEPLOY_PRIME_URL
process.env.CONTEXT !== 'production' && process.env.DEPLOY_PRIME_URL

// https://astro.build/config

// https://astro.build/config
export default defineConfig({
experimental: {
assets: true,
},
image: {
service: sharpImageService(),
},
site: NETLIFY_PREVIEW_SITE || 'https://tonysull.co',
integrations: [
mdx(),
webfinger({
instance: 'indieweb.social',
username: 'tonysull',
}),
],
image: {
service: sharpImageService(),
},
site: NETLIFY_PREVIEW_SITE || 'https://tonysull.co',
integrations: [
mdx(),
webfinger({
instance: 'indieweb.social',
username: 'tonysull',
}),
],
})
Loading

0 comments on commit 62184f2

Please sign in to comment.