Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 12, 2024
1 parent 75e0c28 commit c7fac03
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
- Conflict between `jsx` and esbuild plugin with `jsx` [#547].
- Don't break if env variables are not granted [#551].
- Nested components doesn't work in Vento [#552]
- Updated deps: `std`, `unocss`, `svgo`, `sass`, `postcss`, `postcss-import`, `vento`, `tailwindcss`.
- Updated deps: `std`, `unocss`, `svgo`, `sass`, `postcss`, `postcss-import`, `vento`, `tailwindcss`, `react` types, `remark`, `sharp`.

## [2.0.2] - 2024-01-01
### Added
Expand Down
4 changes: 2 additions & 2 deletions cli/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export async function build(
if (!serve && !watch) {
// Prevent possible timers to keep the process alive forever (wait preventively 10 seconds)
const id = setTimeout(() => {
log.warning(
log.warn(
"After waiting 10 seconds, there are some timers that avoid ending the process.",
);
log.warning("They have been forcibly closed.");
log.warn("They have been forcibly closed.");
Deno.exit(0);
}, 10000);

Expand Down
2 changes: 1 addition & 1 deletion cli/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function saveFile(path: string, content: string | Uint8Array) {
log.info(`✔️ Created file: <dim>${path}</dim>`);
} catch (error) {
if (error instanceof Deno.errors.AlreadyExists) {
log.warning(`⚠️ File already exists: <dim>${path}</dim>`);
log.warn(`⚠️ File already exists: <dim>${path}</dim>`);
} else {
throw error;
}
Expand Down
2 changes: 1 addition & 1 deletion core/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ export default class Site {
}

if (!page.content) {
log.warning(
log.warn(
`[Lume] <cyan>Skipped page</cyan> ${page.data.url} (file content is empty)`,
);
return false;
Expand Down
2 changes: 1 addition & 1 deletion core/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class Writer {
async savePage(page: Page): Promise<boolean> {
// Ignore empty pages
if (!page.content) {
log.warning(
log.warn(
`[Lume] <cyan>Skipped page</cyan> ${page.data.url} (file content is empty)`,
);
return false;
Expand Down
2 changes: 1 addition & 1 deletion deps/assert.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/assert/mod.ts";
export * from "https://deno.land/std@0.212.0/assert/mod.ts";
2 changes: 1 addition & 1 deletion deps/base64.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/encoding/base64.ts";
export * from "https://deno.land/std@0.212.0/encoding/base64.ts";
2 changes: 1 addition & 1 deletion deps/cli.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/cli/mod.ts";
export * from "https://deno.land/std@0.212.0/cli/mod.ts";
2 changes: 1 addition & 1 deletion deps/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/fmt/colors.ts";
export * from "https://deno.land/std@0.212.0/fmt/colors.ts";
2 changes: 1 addition & 1 deletion deps/crypto.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/crypto/mod.ts";
export * from "https://deno.land/std@0.212.0/crypto/mod.ts";
4 changes: 2 additions & 2 deletions deps/front_matter.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "https://deno.land/std@0.211.0/front_matter/any.ts";
export { test } from "https://deno.land/std@0.211.0/front_matter/mod.ts";
export * from "https://deno.land/std@0.212.0/front_matter/any.ts";
export { test } from "https://deno.land/std@0.212.0/front_matter/mod.ts";
2 changes: 1 addition & 1 deletion deps/fs.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/fs/mod.ts";
export * from "https://deno.land/std@0.212.0/fs/mod.ts";
2 changes: 1 addition & 1 deletion deps/hex.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/encoding/hex.ts";
export * from "https://deno.land/std@0.212.0/encoding/hex.ts";
2 changes: 1 addition & 1 deletion deps/http.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { serveFile } from "https://deno.land/std@0.211.0/http/file_server.ts";
export { serveFile } from "https://deno.land/std@0.212.0/http/file_server.ts";
2 changes: 1 addition & 1 deletion deps/jsonc.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/jsonc/mod.ts";
export * from "https://deno.land/std@0.212.0/jsonc/mod.ts";
2 changes: 1 addition & 1 deletion deps/log.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/log/mod.ts";
export * from "https://deno.land/std@0.212.0/log/mod.ts";
2 changes: 1 addition & 1 deletion deps/media_types.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/media_types/mod.ts";
export * from "https://deno.land/std@0.212.0/media_types/mod.ts";
4 changes: 2 additions & 2 deletions deps/path.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "https://deno.land/std@0.211.0/path/mod.ts";
export * as posix from "https://deno.land/std@0.211.0/path/posix/mod.ts";
export * from "https://deno.land/std@0.212.0/path/mod.ts";
export * as posix from "https://deno.land/std@0.212.0/path/posix/mod.ts";
2 changes: 1 addition & 1 deletion deps/react.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @deno-types="npm:@types/[email protected].37"
// @deno-types="npm:@types/[email protected].47"
export { default as React } from "npm:[email protected]";
// @deno-types="npm:@types/[email protected]/server"
export { default as ReactDOMServer } from "npm:[email protected]/server";
Expand Down
4 changes: 2 additions & 2 deletions deps/remark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export { default as rehypeSanitize } from "npm:[email protected]";
export { default as rehypeStringify } from "npm:[email protected]";
export { default as remarkGfm } from "npm:[email protected]";
export { default as remarkParse } from "npm:[email protected]";
export { default as remarkRehype } from "npm:remark-rehype@11.0.0";
export { default as remarkRehype } from "npm:remark-rehype@11.1.0";
export * as unified from "npm:[email protected]";

export type { Options as RehypeOptions } from "npm:remark-rehype@11.0.0";
export type { Options as RehypeOptions } from "npm:remark-rehype@11.1.0";
export type { PluggableList } from "npm:[email protected]";
4 changes: 2 additions & 2 deletions deps/sharp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { default } from "npm:[email protected].1";
export { default } from "npm:[email protected].2";

import sharp from "npm:[email protected].1";
import sharp from "npm:[email protected].2";
import icoEndec from "npm:[email protected]";

export async function sharpsToIco(...images: sharp.Sharp[]) {
Expand Down
2 changes: 1 addition & 1 deletion deps/snapshot.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/testing/snapshot.ts";
export * from "https://deno.land/std@0.212.0/testing/snapshot.ts";
2 changes: 1 addition & 1 deletion deps/toml.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/toml/mod.ts";
export * from "https://deno.land/std@0.212.0/toml/mod.ts";
2 changes: 1 addition & 1 deletion deps/yaml.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.211.0/yaml/mod.ts";
export * from "https://deno.land/std@0.212.0/yaml/mod.ts";
2 changes: 1 addition & 1 deletion plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default function (userOptions?: Options) {
}

if (warnings.length) {
log.warning(
log.warn(
`[esbuild plugin] Build warnings: \n${warnings.join("\n")}`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function (userOptions?: Options) {
const type = contentType(ext);

if (!type) {
log.warning(`[Inline plugin] Unknown file format ${path}`);
log.warn(`[Inline plugin] Unknown file format ${path}`);
return;
}

Expand Down
6 changes: 3 additions & 3 deletions plugins/multilanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function multilanguage(userOptions: Options) {
// If the "lang" variable is a string, check if it's a valid language
if (typeof languages === "string") {
if (!options.languages.includes(languages)) {
log.warning(
log.warn(
`[multilanguage plugin] The language "${languages}" in the page ${page.sourcePath} is not defined in the "languages" option.`,
);
}
Expand All @@ -64,7 +64,7 @@ export default function multilanguage(userOptions: Options) {

// Check if these "languages" are all valid language codes
if (languages.some((lang) => !options.languages.includes(lang))) {
log.warning(
log.warn(
`[multilanguage plugin] One or more languages in the page ${page.sourcePath} are not defined in the "languages" option.`,
);
continue;
Expand Down Expand Up @@ -133,7 +133,7 @@ export default function multilanguage(userOptions: Options) {
const id = `${page.data.lang}-${page.data.id}-${page.data.type}`;
const existing = ids.get(id);
if (existing) {
log.warning(
log.warn(
`[multilanguage] The pages ${existing.sourcePath} and ${page.sourcePath} have the same id, type and language.`,
);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/__snapshots__/picture.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ snapshot[`picture plugin 3`] = `
},
},
{
content: "Uint8Array(3717)",
content: "Uint8Array(3653)",
data: {
basename: "kevin schmid unsplash",
content: "Uint8Array(139102)",
Expand Down Expand Up @@ -610,7 +610,7 @@ snapshot[`picture plugin 3`] = `
},
},
{
content: "Uint8Array(1952)",
content: "Uint8Array(1980)",
data: {
basename: "kevin schmid unsplash",
content: "Uint8Array(139102)",
Expand All @@ -636,7 +636,7 @@ snapshot[`picture plugin 3`] = `
},
},
{
content: "Uint8Array(3717)",
content: "Uint8Array(3653)",
data: {
basename: "kevin schmid unsplash",
content: "Uint8Array(139102)",
Expand Down

0 comments on commit c7fac03

Please sign in to comment.