astro-accelerator-utils 0.3.72 → 0.3.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,22 +7,32 @@ Utility classes for Astro Accelerator
7
7
  [![npm](https://img.shields.io/npm/v/astro-accelerator-utils?color=blue&style=plastic)](https://www.npmjs.com/package/astro-accelerator-utils/)
8
8
  [![npm](https://img.shields.io/npm/dm/astro-accelerator-utils?style=plastic)](https://www.npmjs.com/package/astro-accelerator-utils/)
9
9
 
10
+ ## Overview
11
+
12
+ This package is tested with CucumberJS. The tests are written in the features folder and are run using the `pnpm test` command.
13
+
10
14
  ## Update Type Information
11
15
 
12
16
  Run the command:
13
17
 
14
- pnpm types
18
+ ```bash
19
+ pnpm types
20
+ ```
15
21
 
16
22
  ## Running Tests
17
23
 
18
24
  Run the command:
19
25
 
20
- pnpm test
26
+ ```bash
27
+ pnpm test
28
+ ```
21
29
 
22
30
  ## Create new version
23
31
 
24
32
  Run the command:
25
33
 
26
- pnpm refresh
34
+ ```bash
35
+ pnpm refresh
36
+ ```
27
37
 
28
- This updates dependencies, increments the version number, and re-runs types and tests. If successful, committing the change updates the package on NPM.
38
+ This updates dependencies, increments the version number, and re-runs types and tests. If successful, committing the change updates the package on NPM.
package/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Accelerator } from './lib/v1/accelerator.mjs';
2
-
3
2
  import * as PostFiltering from './lib/postFiltering.mjs';
4
3
  import * as PostOrdering from './lib/postOrdering.mjs';
5
4
 
@@ -8,7 +8,7 @@ export class Accelerator {
8
8
  constructor(site: Site);
9
9
  cacheMaxAge: number;
10
10
  dateOptions: Intl.DateTimeFormatOptions;
11
- shortDateOptions: any;
11
+ shortDateOptions: Intl.DateTimeFormatOptions;
12
12
  siteUrl: string;
13
13
  subfolder: string;
14
14
  useTrailingUrlSlash: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.3.72",
3
+ "version": "0.3.74",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -14,9 +14,10 @@
14
14
  "types": "index.d.mts",
15
15
  "scripts": {
16
16
  "refresh": "npm version patch && pnpm update --latest && pnpm types && pnpm test",
17
- "update-node": "bash -c 'source $NVM_DIR/nvm.sh && nvm install --lts && npm install -g pnpm'",
17
+ "spell": "cspell lint \"**\"",
18
18
  "types": "node ./clean.mjs && npx tsc index.mjs --allowJs --declaration --emitDeclarationOnly",
19
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --collectCoverage --runInBand"
19
+ "test": "c8 --include='lib/**/*.mjs' --exclude='features/**' --reporter=text --all cucumber-js",
20
+ "update-node": "bash -c 'source $NVM_DIR/nvm.sh && nvm install --lts && npm install -g pnpm'"
20
21
  },
21
22
  "repository": {
22
23
  "type": "git",
@@ -34,9 +35,10 @@
34
35
  },
35
36
  "homepage": "https://astro.stevefenton.co.uk/",
36
37
  "devDependencies": {
37
- "@types/node": "^25.3.5",
38
- "jest": "^30.2.0",
39
- "jest-spec": "^0.0.6",
38
+ "@cucumber/cucumber": "^12.7.0",
39
+ "@types/node": "^25.5.0",
40
+ "c8": "^11.0.0",
41
+ "cspell": "^9.7.0",
40
42
  "rehype-stringify": "^10.0.1",
41
43
  "remark-parse": "^11.0.0",
42
44
  "remark-rehype": "^11.1.2",
package/types/Site.d.ts CHANGED
@@ -3,6 +3,7 @@ export type Site = {
3
3
  useTrailingUrlSlash?: boolean;
4
4
  captureStatistics: boolean;
5
5
  dateOptions: Intl.DateTimeFormatOptions;
6
+ shortDateOptions: Intl.DateTimeFormatOptions;
6
7
  subfolder: string;
7
8
  feedUrl: string;
8
9
  title: string;