diff --git a/package-lock.json b/package-lock.json index a864a264..a6b552b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "node-fetch": "^3.3.2", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", - "tsdoc-markdown": "^0.2.0", + "tsdoc-markdown": "^0.2.1", "typescript": "^5.2.2" } }, @@ -4720,9 +4720,9 @@ } }, "node_modules/tsdoc-markdown": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/tsdoc-markdown/-/tsdoc-markdown-0.2.0.tgz", - "integrity": "sha512-A+w9+R46a1WZgsCnfVMp91zWL8cTrUrxSyiQo1aY0WZg5LF9hscb+jfc4XB8pV0CtFsAJtqXbnHYKz6Y58nc0w==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tsdoc-markdown/-/tsdoc-markdown-0.2.1.tgz", + "integrity": "sha512-m4H0k5VZzeDNc35RSWN0S+ybBig0HwbNoKMQPBN141NeTyT2C7u+xSDSFca9l6blC87OGiHX+6L6KN6IS1ucUA==", "dev": true, "bin": { "tsdoc": "bin/index.js" @@ -8098,9 +8098,9 @@ } }, "tsdoc-markdown": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/tsdoc-markdown/-/tsdoc-markdown-0.2.0.tgz", - "integrity": "sha512-A+w9+R46a1WZgsCnfVMp91zWL8cTrUrxSyiQo1aY0WZg5LF9hscb+jfc4XB8pV0CtFsAJtqXbnHYKz6Y58nc0w==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tsdoc-markdown/-/tsdoc-markdown-0.2.1.tgz", + "integrity": "sha512-m4H0k5VZzeDNc35RSWN0S+ybBig0HwbNoKMQPBN141NeTyT2C7u+xSDSFca9l6blC87OGiHX+6L6KN6IS1ucUA==", "dev": true, "requires": {} }, diff --git a/package.json b/package.json index 7eaf7cb5..e4e7a205 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "node-fetch": "^3.3.2", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", - "tsdoc-markdown": "^0.2.0", + "tsdoc-markdown": "^0.2.1", "typescript": "^5.2.2" }, "size-limit": [ diff --git a/packages/config/README.md b/packages/config/README.md index 91650db1..28362865 100644 --- a/packages/config/README.md +++ b/packages/config/README.md @@ -28,64 +28,64 @@ Configuration options for [Juno] CLI. Headers allow the client and the satellite to pass additional information along with a request or a response. Some sets of headers can affect how the browser handles the page and its content. -| Property | Type | Description | -| --------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `source` | `string` | `The glob pattern used to match files within the storage that these headers will apply to.` | -| `headers` | `[string, string][]` | `An array of key-value pairs representing the headers to apply. Each pair includes the header name and its value.Example: `[["Cache-Control", "max-age=3600"], ["X-Custom-Header", "value"]]`` | +| Property | Type | Description | +| --------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `source` | `string` | The glob pattern used to match files within the storage that these headers will apply to. | +| `headers` | `[string, string][]` | An array of key-value pairs representing the headers to apply. Each pair includes the header name and its value.Example: `[["Cache-Control", "max-age=3600"], ["X-Custom-Header", "value"]]` | #### :gear: StorageConfigRewrite You can utilize optional rewrites to display the same content for multiple URLs. Rewrites are especially useful when combined with pattern matching, allowing acceptance of any URL that matches the pattern. -| Property | Type | Description | -| ------------- | -------- | ----------------------------------------------------------------------------------------------------------------------- | -| `source` | `string` | `The glob pattern or specific path to match for incoming requests. Matches are rewritten to the specified destination.` | -| `destination` | `string` | `The destination path or file to which matching requests should be rewritten.` | +| Property | Type | Description | +| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------- | +| `source` | `string` | The glob pattern or specific path to match for incoming requests. Matches are rewritten to the specified destination. | +| `destination` | `string` | The destination path or file to which matching requests should be rewritten. | #### :gear: StorageConfigRedirect Use a URL redirect to prevent broken links if you've moved a page or to shorten URLs. -| Property | Type | Description | -| ---------- | ------------ | --------------------------------------------------------------------------------------------------------------- | -| `source` | `string` | `The glob pattern or specific path to match for incoming requests that should be redirected.` | -| `location` | `string` | `The URL or path to which the request should be redirected.` | -| `code` | `301 or 302` | `The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect).` | +| Property | Type | Description | +| ---------- | ------------ | ------------------------------------------------------------------------------------------------------------- | +| `source` | `string` | The glob pattern or specific path to match for incoming requests that should be redirected. | +| `location` | `string` | The URL or path to which the request should be redirected. | +| `code` | `301 or 302` | The HTTP status code to use for the redirect, typically 301 (permanent redirect) or 302 (temporary redirect). | #### :gear: StorageConfig Configures the Hosting behavior of the Storage. -| Property | Type | Description | -| ----------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `headers` | `StorageConfigHeader[]` | `Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns.` | -| `rewrites` | `StorageConfigRewrite[]` | `Optional array of `StorageConfigRewrite` objects to define rewrite rules.` | -| `redirects` | `StorageConfigRedirect[]` | `Optional array of `StorageConfigRedirect` objects to define HTTP redirects.` | -| `iframe` | `"deny" or "same-origin" or "allow-any"` | `For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.Options are:- `deny`: Prevents any content from being displayed in an iframe.- `same-origin`: Allows iframe content from the same origin as the page.- `allow-any`: Allows iframe content from any origin.If not specified, then `deny` is used as default value.` | +| Property | Type | Description | +| ----------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `headers` | `StorageConfigHeader[]` | Optional array of `StorageConfigHeader` objects to define custom HTTP headers for specific files or patterns. | +| `rewrites` | `StorageConfigRewrite[]` | Optional array of `StorageConfigRewrite` objects to define rewrite rules. | +| `redirects` | `StorageConfigRedirect[]` | Optional array of `StorageConfigRedirect` objects to define HTTP redirects. | +| `iframe` | `"deny" or "same-origin" or "allow-any"` | For security reasons and to prevent click-jacking attacks, dapps deployed with Juno are, by default, set to deny embedding in other sites.Options are:- `deny`: Prevents any content from being displayed in an iframe.- `same-origin`: Allows iframe content from the same origin as the page.- `allow-any`: Allows iframe content from any origin.If not specified, then `deny` is used as default value. | #### :gear: SatelliteAssertions -| Property | Type | Description | -| ------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `heapMemory` | `number or boolean` | `Configuration for the heap memory size check, which can be:- `true`to enable the check with a default threshold of 900MB,-`false`to disable the heap memory size check,- A`number`to specify a custom threshold in MB (megabytes) for the heap memory size check.If not specified, then`true` is used as default value.` | +| Property | Type | Description | +| ------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `heapMemory` | `number or boolean` | Configuration for the heap memory size check, which can be:- `true` to enable the check with a default threshold of 900MB,- `false` to disable the heap memory size check,- A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.If not specified, then `true` is used as default value. | #### :gear: SatelliteConfig -| Property | Type | Description | -| ------------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `satelliteId` | `string` | `The unique identifier (ID) of the satellite where the application will be deployed.` | -| `source` | `string` | `Specifies the directory from which to deploy to storage. Defaults to 'build'.For instance, if `npm run build`outputs files to a`dist`folder, use`source: 'dist'`.` | -| `storage` | `StorageConfig` | `Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.Changes to these parameters must be applied manually afterwards using `juno config` commands.` | -| `ignore` | `string[]` | `Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore.` | -| `gzip` | `string or false` | `Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax.` | -| `encoding` | `[string, ENCODING_TYPE][]` | `Customizes file encoding mapping for HTTP response headers `Content-Encoding`based on file extension:-`.Z`for compress,-`.gz`for gzip,-`.br`for brotli,-`.zlib`for deflate,- anything else defaults to`identity`.The "encoding" attribute allows overriding default mappings with an array of glob patterns and encoding types.` | -| `assertions` | `SatelliteAssertions` | `Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions.` | +| Property | Type | Description | +| ------------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `satelliteId` | `string` | The unique identifier (ID) of the satellite where the application will be deployed. | +| `source` | `string` | Specifies the directory from which to deploy to storage. Defaults to 'build'.For instance, if `npm run build` outputs files to a `dist` folder, use `source: 'dist'`. | +| `storage` | `StorageConfig` | Optional configuration parameters for the satellite, affecting the operational behavior of its Storage.Changes to these parameters must be applied manually afterwards using `juno config` commands. | +| `ignore` | `string[]` | Specifies files or patterns to ignore during deployment, using glob patterns similar to those in .gitignore. | +| `gzip` | `string or false` | Controls the Gzip compression optimization for files in the source folder. By default, it targets JavaScript (js), ES Module (mjs), and CSS (css) files.You can disable this by setting it to `false` or customize it with a different file matching pattern using glob syntax. | +| `encoding` | `[string, ENCODING_TYPE][]` | Customizes file encoding mapping for HTTP response headers `Content-Encoding` based on file extension:- `.Z` for compress,- `.gz` for gzip,- `.br` for brotli,- `.zlib` for deflate,- anything else defaults to `identity`.The "encoding" attribute allows overriding default mappings with an array of glob patterns and encoding types. | +| `assertions` | `SatelliteAssertions` | Optional configurations to override default assertions made by the CLI regarding satellite deployment conditions. | #### :gear: OrbiterConfig -| Property | Type | Description | -| ----------- | -------- | ------------------------------------------------- | -| `orbiterId` | `string` | `The identifier of the orbiter used in the dApp.` | +| Property | Type | Description | +| ----------- | -------- | ----------------------------------------------- | +| `orbiterId` | `string` | The identifier of the orbiter used in the dApp. | #### :gear: JunoConfig