Comparing version 1.13.1 to 1.13.2
@@ -8,5 +8,12 @@ # Change Log | ||
## [1.13.2] - 2024-07-31 | ||
### Changed | ||
- `ContentStep.shouldProcess()` is now async. | ||
## [1.13.1] - 2024-07-30 | ||
### Changed | ||
- `DomReplaceCommand` is not abstract anymore. | ||
@@ -17,2 +24,3 @@ | ||
### Changed | ||
- `FileUtil.copy` now uses `Context` and `CopyStepConfig` parameters. | ||
@@ -22,4 +30,5 @@ - `CopyStepConfig` now relies on `config.getOutputPath(context)` to devise output file path. This leverages `SsgConfig.toOutputPath()` and allows to copy each file to a different target. | ||
### Removed | ||
- `HtmlTagReplaceCommand` as the generic `DomReplaceCommand` with a tag selector is enough. | ||
- `HtmlTagReplaceCommand` as the generic `DomReplaceCommand` with a tag selector is enough. | ||
## [1.12.0] - 2024-07-15 | ||
@@ -26,0 +35,0 @@ |
@@ -49,3 +49,3 @@ import { SsgStep } from "../SsgStep.js"; | ||
*/ | ||
protected shouldProcess(context: C, contentsConfig: ContentStepConfig): boolean; | ||
protected shouldProcess(context: C, contentsConfig: ContentStepConfig): Promise<boolean>; | ||
} |
@@ -61,3 +61,3 @@ import fs from "fs"; | ||
context.file = context.read(filePath); | ||
const processed = this.shouldProcess(context, contentsConfig); | ||
const processed = await this.shouldProcess(context, contentsConfig); | ||
if (processed) { | ||
@@ -87,3 +87,3 @@ context.debug("Processing", filePath); | ||
*/ | ||
shouldProcess(context, contentsConfig) { | ||
async shouldProcess(context, contentsConfig) { | ||
let inputHasChanged; | ||
@@ -90,0 +90,0 @@ const outputPath = contentsConfig.getOutputPath(context); |
@@ -26,3 +26,3 @@ export class DomReplaceCommand { | ||
} | ||
} while (result != contents); | ||
} while (result !== contents); | ||
context.file.contents = result; | ||
@@ -29,0 +29,0 @@ await this.postExecute(context); |
@@ -5,3 +5,3 @@ { | ||
"author": "Jérôme Beau <javarome@gmail.com> (https://javarome.com)", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "Static Site Generation TypeScript API", | ||
@@ -8,0 +8,0 @@ "exports": "./dist/src/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138275