-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor ~ replace JSDelivr/SkyPack imports with 'esm.sh'
* Deno-v2.0.0-rc7+ is now requiring "import" permissions - JSDelivr and SkyPack are not on the Deno-2.0 default allowlist - esm.sh *is* included in the "allow-import" default domain list - ref: [Proposal/discussion](denoland/deno#8266) - ref: [Merged solution](denoland/deno#25469)
- Loading branch information
Showing
3 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,20 @@ export const $fs = { exists, existsSync, expandGlob, expandGlobSync }; | |
|
||
// export { default as $xdgAppPaths } from 'https://cdn.jsdelivr.net/gh/rivy/js.xdg-app-paths@9466e97/src/mod.deno.ts'; | ||
|
||
// export * as $lodash from 'https://cdn.skypack.dev/pin/[email protected]/lodash.js'; | ||
export * as $lodash from 'https://cdn.skypack.dev/[email protected]'; | ||
export * as $cliffyTable from 'https://deno.land/x/[email protected]/table/mod.ts'; // *pin*; [email protected] == last version to use [email protected] (or lower) | ||
export { default as $osPaths } from 'https://deno.land/x/[email protected]/src/mod.deno.ts'; | ||
export * as $semver from 'https://deno.land/x/[email protected]/mod.ts'; | ||
export * as $tty from 'https://deno.land/x/[email protected]/mod.ts'; | ||
export { default as $xdgAppPaths } from 'https://deno.land/x/[email protected]/src/mod.deno.ts'; | ||
|
||
// export * as $lodash from 'https://cdn.skypack.dev/pin/[email protected]/lodash.js'; | ||
// export * as $lodash from 'https://cdn.skypack.dev/[email protected]'; | ||
// * revise URL to use 'esm.sh' instead of 'cdn.skypack.dev' for compatibility with Deno-2.0 "import" permission defaults | ||
// export { default as $lodash } from 'https://esm.sh/[email protected]'; | ||
// export { _ as $lodash } from 'https://esm.sh/[email protected]'; | ||
// export * as $lodash from 'https://deno.land/x/[email protected]/dist/lodash.js'; | ||
export { default as $lodash } from 'npm:[email protected]'; // requires deno-v1.25.0+; recommend deno-v1.30.0+ for better results | ||
|
||
// export { default as $yargs } from 'https://deno.land/x/[email protected]/deno.ts'; | ||
|
||
//=== features (functions, objects, and/or values) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,13 @@ import { string, unknown } from 'https://esm.sh/v45/[email protected]'; | |
// ToDO: evaluate [`zod`](https://github.com/colinhacks/zod) as a possible replacement for `computed-types` | ||
// ToDO: evaluate `chai` and `sinon`; egs, <https://deno.land/[email protected]/testing/chai_example.ts> and <https://deno.land/[email protected]/testing/sinon_example.ts> | ||
|
||
import chai from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
// import sinon from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
// import mocha from 'https://unpkg.com/[email protected]/mocha.js'; | ||
import { z } from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
// import chai from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
// // import sinon from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
// // import mocha from 'https://unpkg.com/[email protected]/mocha.js'; | ||
// import { z } from 'https://cdn.skypack.dev/[email protected]?dts'; | ||
|
||
import chai from 'https://esm.sh/[email protected]'; | ||
import { z } from 'https://esm.sh/[email protected]'; | ||
|
||
import { test } from './$shared.ts'; | ||
|
||
|