Skip to content

Commit

Permalink
feat: upgrade @deno/shim-deno to 0.17 (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Nov 14, 2023
1 parent 9be930c commit 8087ee1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/package_json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { getPackageJson, GetPackageJsonOptions } from "./package_json.ts";

const versions = {
picocolors: "^1.0.0",
nodeTypes: "^18.11.9",
tsLib: "^2.4.1",
nodeTypes: "^20.9.0",
tsLib: "^2.6.2",
};

Deno.test("single entrypoint", () => {
Expand Down
4 changes: 2 additions & 2 deletions lib/package_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getPackageJson({
// typescript helpers library (https://www.npmjs.com/package/tslib)
...(includeTsLib
? {
tslib: "^2.4.1",
tslib: "^2.6.2",
}
: {}),
// add dependencies from transform
Expand Down Expand Up @@ -80,7 +80,7 @@ export function getPackageJson({
const devDependencies = {
...(shouldIncludeTypesNode()
? {
"@types/node": "^18.11.9",
"@types/node": "^20.9.0",
}
: {}),
...testDevDependencies,
Expand Down
6 changes: 3 additions & 3 deletions lib/shims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getDenoShim(): Shim {
return {
package: {
name: "@deno/shim-deno",
version: "~0.16.1",
version: "~0.17.0",
},
globalNames: ["Deno"],
};
Expand All @@ -113,7 +113,7 @@ function getDenoTestShim(): Shim {
return {
package: {
name: "@deno/shim-deno-test",
version: "~0.4.0",
version: "~0.5.0",
},
globalNames: ["Deno"],
};
Expand Down Expand Up @@ -197,7 +197,7 @@ function getUndiciShim(): Shim {
return {
package: {
name: "undici",
version: "^5.21.0",
version: "^5.27.2",
},
globalNames: [
"fetch",
Expand Down
10 changes: 5 additions & 5 deletions tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import { build, BuildOptions, ShimOptions } from "../mod.ts";
import { path } from "../lib/mod.deps.ts";

const versions = {
denoShim: "~0.16.1",
denoTestShim: "~0.4.0",
denoShim: "~0.17.0",
denoTestShim: "~0.5.0",
cryptoShim: "~0.3.1",
domExceptionShim: "^4.0.0",
domExceptionShimTypes: "^4.0.0",
promptsShim: "~0.1.0",
timersShim: "~0.1.0",
weakRefSham: "~0.1.0",
undici: "^5.21.0",
undici: "^5.27.2",
picocolors: "^1.0.0",
nodeTypes: "^18.11.9",
tsLib: "^2.4.1",
nodeTypes: "^20.9.0",
tsLib: "^2.6.2",
};

Deno.test("should throw because both scriptModule and esModule are false", async () => {
Expand Down

0 comments on commit 8087ee1

Please sign in to comment.