diff --git a/cli/package.json b/cli/package.json index f3408dc8b17..14e40bd2a79 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,5 +1,6 @@ { "name": "@iota-wiki/cli", + "type": "module", "description": "A command line utility to manage Wiki content and preview content locally.", "author": "IOTA community", "license": "MIT", @@ -38,9 +39,9 @@ "markdownlint-cli2": "^0.8.1", "node-html-parser": "^6.1.10", "prettier": "2.8.8", - "remark": "^14.0.2", + "remark": "^15.0.1", "remark-lint-no-dead-urls": "^1.1.0", - "unified-engine": "^10.1.0" + "unified-engine": "^11.2.0" }, "devDependencies": { "@types/babel__generator": "^7", diff --git a/cli/src/commands/check.tsx b/cli/src/commands/check.tsx index 6c319329c8c..3dab4caf2ee 100644 --- a/cli/src/commands/check.tsx +++ b/cli/src/commands/check.tsx @@ -1,9 +1,11 @@ import { Command, Option } from 'clipanion'; import path from 'path'; -import visit from 'unist-util-visit'; +import { visit } from 'unist-util-visit'; import { Node } from 'unist'; import checkUrl from 'link-check'; import { parse } from 'node-html-parser'; +import { engine } from 'unified-engine'; +import { remark } from 'remark'; const buildConfig = require.resolve('../docusaurus/config/build.js'); const SUPPORTED_PLUGINS = [ @@ -42,8 +44,6 @@ export class Check extends Command { async execute() { console.time('check'); - const { engine } = await import('unified-engine'); - const { remark } = await import('remark'); const directory = this.directory || process.cwd(); @@ -88,7 +88,7 @@ export class Check extends Command { await new Promise((resolve, reject) => engine( { - processor: remark(), + processor: remark, files: [pluginPaths], extensions: ['md', 'mdx'], plugins: [RemarkLinkVisitor], diff --git a/cli/tsconfig.json b/cli/tsconfig.json index 8afd5681bba..3d78119d7df 100644 --- a/cli/tsconfig.json +++ b/cli/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "es2022", - "module": "commonjs", - "moduleResolution": "node16", + "target": "ES2022", + "module": "ES2022", + "moduleResolution": "Node", "resolveJsonModule": true, "jsx": "react", "allowJs": true, diff --git a/docs/build/identity.rs/1.0/docs/references/api/wasm.mdx b/docs/build/identity.rs/1.0/docs/references/api/wasm.md similarity index 100% rename from docs/build/identity.rs/1.0/docs/references/api/wasm.mdx rename to docs/build/identity.rs/1.0/docs/references/api/wasm.md diff --git a/docs/build/identity.rs/1.1/docs/references/api/wasm.mdx b/docs/build/identity.rs/1.1/docs/references/api/wasm.md similarity index 99% rename from docs/build/identity.rs/1.1/docs/references/api/wasm.mdx rename to docs/build/identity.rs/1.1/docs/references/api/wasm.md index 6e316d5a031..0c342411aea 100644 --- a/docs/build/identity.rs/1.1/docs/references/api/wasm.mdx +++ b/docs/build/identity.rs/1.1/docs/references/api/wasm.md @@ -2431,7 +2431,7 @@ the given `storage`. ### ~~iotaDocument.createJwt(storage, fragment, payload, options) ⇒ [Promise.<Jws>](#Jws)~~ -***Deprecated*** +**_Deprecated_** Sign the `payload` according to `options` with the storage backed private key corresponding to the public key material in the verification method identified by the given `fragment. diff --git a/docs/build/identity.rs/1.2/docs/references/api/wasm.mdx b/docs/build/identity.rs/1.2/docs/references/api/wasm.md similarity index 99% rename from docs/build/identity.rs/1.2/docs/references/api/wasm.mdx rename to docs/build/identity.rs/1.2/docs/references/api/wasm.md index 6e15083c3bc..623aa8ed3b7 100644 --- a/docs/build/identity.rs/1.2/docs/references/api/wasm.mdx +++ b/docs/build/identity.rs/1.2/docs/references/api/wasm.md @@ -2496,7 +2496,7 @@ the given `storage`. ### ~~iotaDocument.createJwt(storage, fragment, payload, options) ⇒ [Promise.<Jws>](#Jws)~~ -***Deprecated*** +**_Deprecated_** Sign the `payload` according to `options` with the storage backed private key corresponding to the public key material in the verification method identified by the given `fragment. diff --git a/docs/build/introduction-docs/stardust/docs/explanations/ledger/foundry.md b/docs/build/introduction-docs/stardust/docs/explanations/ledger/foundry.md index 4fb54c4030b..05571efe907 100644 --- a/docs/build/introduction-docs/stardust/docs/explanations/ledger/foundry.md +++ b/docs/build/introduction-docs/stardust/docs/explanations/ledger/foundry.md @@ -116,7 +116,7 @@ In order not to lose access to the storage deposit, two additional unlock condit _Basic Output #7_ in Transaction F: - A _Storage Deposit Return Unlock Condition_ that forces the consumer of the output to refund _Return Amount_ of base tokens to _Return Address_, -- and an __Expiration Unlock_ Condition_ that defines a time window until the recipient has to claim the transfer. If they don't do so, +- and an _Expiration Unlock Condition_ that defines a time window until the recipient has to claim the transfer. If they don't do so, ownership of _Basic Output #7_ bounces back to the sender and the _Storage Deposit Return Unlock Condition_ is ignored. - The expiration time is compared to the timestamp of the confirming milestone to decide whether the unlock is valid or not. diff --git a/docs/community/contribute-to-wiki/how_tos/how_to_write_how_tos.md b/docs/community/contribute-to-wiki/how_tos/how_to_write_how_tos.md index f5ee1214c00..a79d6147527 100644 --- a/docs/community/contribute-to-wiki/how_tos/how_to_write_how_tos.md +++ b/docs/community/contribute-to-wiki/how_tos/how_to_write_how_tos.md @@ -15,7 +15,7 @@ Keep how tos atomic: let each describe one particular task at a time. It is easi ## How To Template -If you do not know where to start, just take this template and replace everything in {CURLY BRACES} or rewrite whole sentences: +If you do not know where to start, just take this template and replace everything in \{CURLY BRACES\} or rewrite whole sentences: ```markdown # How To {DO SOMETHING} diff --git a/docs/get-started/tools/legacy-migration-tool.mdx b/docs/get-started/tools/legacy-migration-tool.mdx index 04051f80f75..1d352f07367 100644 --- a/docs/get-started/tools/legacy-migration-tool.mdx +++ b/docs/get-started/tools/legacy-migration-tool.mdx @@ -30,7 +30,7 @@ network, you should start your migration in a timely manner since other forms of :::note Storage Deposits -If you have lots of small amounts of $IOTA (<1Mi) spread across lots of addresses, it may not be possible to +If you have lots of small amounts of $IOTA (\<1Mi) spread across lots of addresses, it may not be possible to migrate these small amounts if their total is less than the minimum [required storage deposit on the Stardust network](/learn/protocols/stardust/core-concepts/storage-deposit/). diff --git a/docs/learn/governance/the-shimmer-governance-framework.md b/docs/learn/governance/the-shimmer-governance-framework.md index 0b1d25f82d6..2a8716c69de 100644 --- a/docs/learn/governance/the-shimmer-governance-framework.md +++ b/docs/learn/governance/the-shimmer-governance-framework.md @@ -62,10 +62,12 @@ Once an idea successfully passes phase 2, a vote is initiated in phase 3 using t