Skip to content

Commit

Permalink
[ci] update lockfile (#6837)
Browse files Browse the repository at this point in the history
* [ci] update lockfile

* Fix type errors

* Fix zod version

* updated lockfile

* fix tests

---------

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
  • Loading branch information
3 people authored Apr 13, 2023
1 parent 500ee80 commit 0f4c005
Show file tree
Hide file tree
Showing 7 changed files with 2,315 additions and 2,598 deletions.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"vite": "^4.2.1",
"vitefu": "^0.2.4",
"yargs-parser": "^21.0.1",
"zod": "^3.17.3"
"zod": "^3.20.6"
},
"devDependencies": {
"@playwright/test": "^1.29.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/src/content/error-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
} else {
typeOrLiteralErrByPath.set(flattenedErrorPath, {
code: unionError.code,
received: unionError.received,
received: (unionError as any).received,
expected: [unionError.expected],
});
}
Expand Down Expand Up @@ -58,7 +58,7 @@ export const errorMap: ZodErrorMap = (baseError, ctx) => {
baseErrorPath,
getTypeOrLiteralMsg({
code: baseError.code,
received: baseError.received,
received: (baseError as any).received,
expected: [baseError.expected],
})
),
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/content/runtime-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function createImage(
fatal: true,
});

return z.NEVER;
return z.never();
}

return metadata;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-postprocess/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function astro(_opts: AstroPluginOptions): Plugin {
ecmaVersion: 'latest',
sourceType: 'module',
});
// @ts-expect-error acorn.Node is not assignable to estree.Node

walk(ast, {
enter(node: any) {
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
Expand Down
4 changes: 3 additions & 1 deletion packages/integrations/preact/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ export default (element: HTMLElement) =>
return h(element.localName, attrs, children);
}

let parent = element.parentNode as Element;

render(
h(
Wrapper,
null,
h(Component, props, children != null ? h(StaticHtml, { value: children }) : children)
),
element.parentNode!,
parent,
element
);
};
2 changes: 1 addition & 1 deletion packages/markdown/remark/src/frontmatter-injection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Data, VFile } from 'vfile';
import type { VFileData as Data, VFile } from 'vfile';
import type { MarkdownAstroData } from './types.js';

function isValidAstroData(obj: unknown): obj is MarkdownAstroData {
Expand Down
Loading

0 comments on commit 0f4c005

Please sign in to comment.