Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
adbayb committed Nov 18, 2024
1 parent ee9335a commit 919d4ea
Show file tree
Hide file tree
Showing 26 changed files with 770 additions and 441 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-knives-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"quickbundle": minor
---

Update dependencies including rollup, swc, and termost.
2 changes: 1 addition & 1 deletion examples/multiple-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"watch": "quickbundle watch"
},
"dependencies": {
"ora": "^8.1.1",
"picospinner": "^2.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
12 changes: 7 additions & 5 deletions examples/multiple-exports/src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import process from "node:process";
import path from "node:path";
import fs from "node:fs";

import ora from "ora";
import { Spinner } from "picospinner";

const spinner = ora("Loading file").start();
const spinner = new Spinner("Loading…");

spinner.start();

setTimeout(() => {
spinner.stop();
console.log(
fs.readFileSync(path.join(process.cwd(), "package.json"), {
encoding: "utf-8",
encoding: "utf8",
}),
);
spinner.succeed("Finished.");
}, 3000);

export { ora };
export { Spinner };
4 changes: 2 additions & 2 deletions examples/multiple-exports/src/react/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export const App = (props) => {
);
};

const Image = (props) => {
const Image = ({ src }) => {
return (
<img
alt="test"
src={props.src}
src={src}
width="100"
/>
);
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-exports/src/react/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoot } from "react-dom/client";

import { App } from "./App";

const container = document.getElementById("root");
const container = document.querySelector("#root");

if (container) {
const root = createRoot(container);
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-standalones/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"watch": "pnpm build"
},
"dependencies": {
"ora": "^8.1.1"
"picospinner": "^2.0.0"
},
"devDependencies": {
"quickbundle": "workspace:*",
Expand Down
9 changes: 6 additions & 3 deletions examples/multiple-standalones/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import process from "node:process";

import ora from "ora";
import { Spinner } from "picospinner";

console.info("Hello world\n");

Expand All @@ -17,12 +17,15 @@ console.debug(
),
);

const spinner = ora("Fake processing").start();
const spinner = new Spinner("Fake processing");

spinner.start();

const sleep = async (duration = 3000) => {
return new Promise((resolve) => setTimeout(resolve, duration));
};

// eslint-disable-next-line unicorn/prefer-top-level-await
void sleep().then(() => {
spinner.stop();
spinner.succeed("Finished.");
});
2 changes: 1 addition & 1 deletion examples/single-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"watch": "quickbundle watch"
},
"dependencies": {
"ora": "^8.1.1"
"picospinner": "^2.0.0"
},
"devDependencies": {
"quickbundle": "workspace:*"
Expand Down
12 changes: 7 additions & 5 deletions examples/single-export/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import process from "node:process";
import path from "node:path";
import fs from "node:fs";

import ora from "ora";
import { Spinner } from "picospinner";

const spinner = ora("Loading file").start();
const spinner = new Spinner("Loading…");

spinner.start();

setTimeout(() => {
spinner.stop();
console.log(
fs.readFileSync(path.join(process.cwd(), "package.json"), {
encoding: "utf-8",
encoding: "utf8",
}),
);
spinner.succeed("Finished.");
}, 3000);

export { ora };
export { Spinner };
2 changes: 1 addition & 1 deletion examples/single-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"watch": "pnpm build"
},
"dependencies": {
"ora": "^8.1.1"
"picospinner": "^2.0.0"
},
"devDependencies": {
"quickbundle": "workspace:*",
Expand Down
9 changes: 6 additions & 3 deletions examples/single-standalone/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import process from "node:process";

import ora from "ora";
import { Spinner } from "picospinner";

console.info("Hello world\n");

Expand All @@ -17,12 +17,15 @@ console.debug(
),
);

const spinner = ora("Fake processing").start();
const spinner = new Spinner("Fake processing");

spinner.start();

const sleep = async (duration = 3000) => {
return new Promise((resolve) => setTimeout(resolve, duration));
};

// eslint-disable-next-line unicorn/prefer-top-level-await
void sleep().then(() => {
spinner.stop();
spinner.succeed("Finished.");
});
2 changes: 1 addition & 1 deletion examples/ts-multiple-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"watch": "quickbundle watch"
},
"dependencies": {
"ora": "^8.1.1",
"picospinner": "^2.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
12 changes: 7 additions & 5 deletions examples/ts-multiple-exports/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import process from "node:process";
import path from "node:path";
import fs from "node:fs";

import ora from "ora";
import { Spinner } from "picospinner";

const spinner = ora("Loading file").start();
const spinner = new Spinner("Loading…");

spinner.start();

setTimeout(() => {
spinner.stop();
console.log(
fs.readFileSync(path.join(process.cwd(), "package.json"), {
encoding: "utf-8",
encoding: "utf8",
}),
);
spinner.succeed("Finished.");
}, 3000);

export { ora };
export { Spinner };
4 changes: 2 additions & 2 deletions examples/ts-multiple-exports/src/react/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ type ImageProps = {
readonly src: string;
};

const Image = (props: ImageProps) => {
const Image = ({ src }: ImageProps) => {
return (
<img
alt="test"
src={props.src}
src={src}
width="100"
/>
);
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-multiple-exports/src/react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoot } from "react-dom/client";

import { App } from "./App";

const container = document.getElementById("root");
const container = document.querySelector("#root");

if (container) {
const root = createRoot(container);
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-single-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"watch": "quickbundle watch"
},
"dependencies": {
"ora": "^8.1.1"
"picospinner": "^2.0.0"
},
"devDependencies": {
"quickbundle": "workspace:*",
Expand Down
12 changes: 7 additions & 5 deletions examples/ts-single-export/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import process from "node:process";
import path from "node:path";
import fs from "node:fs";

import ora from "ora";
import { Spinner } from "picospinner";

const spinner = ora("Loading file").start();
const spinner = new Spinner("Loading…");

spinner.start();

setTimeout(() => {
spinner.stop();
console.log(
fs.readFileSync(path.join(process.cwd(), "package.json"), {
encoding: "utf-8",
encoding: "utf8",
}),
);
spinner.succeed("Finished.");
}, 3000);

export { ora };
export { Spinner };
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"release:version": "stack release --tag",
"release:publish": "stack release --publish"
},
"packageManager": "pnpm@9.12.3",
"packageManager": "pnpm@9.13.2",
"engines": {
"node": ">=22.0.0",
"pnpm": ">=9.0.0",
Expand All @@ -25,6 +25,6 @@
},
"prettier": "@adbayb/stack/prettier",
"devDependencies": {
"@adbayb/stack": "2.3.1"
"@adbayb/stack": "2.6.2"
}
}
Loading

0 comments on commit 919d4ea

Please sign in to comment.