Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased [major]

> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.

### Changed

- **Breaking:** Update minimum supported Node.js version to v20
- Add `Content Monetisation Policy` terms type, introduced in [`[email protected]`](https://github.com/OpenTermsArchive/terms-types/blob/main/CHANGELOG.md#210---2025-02-24)
- Update dependencies

## 7.2.4 - 2025-09-22

_Full changeset and discussions: [#1195](https://github.com/OpenTermsArchive/engine/pull/1195)._
Expand Down
6 changes: 4 additions & 2 deletions bin/env.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'dotenv/config';

import path from 'path';
import { fileURLToPath } from 'url';

import dotenv from 'dotenv';

dotenv.config({ quiet: true });

const __dirname = path.dirname(fileURLToPath(import.meta.url));

process.env.SUPPRESS_NO_CONFIG_WARNING = 'y'; // Caller don't get "no config files" warnings if it does define configuration files
Expand Down
4 changes: 2 additions & 2 deletions bin/ota-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './env.js';

import { program } from 'commander';
import config from 'config';
import cron from 'croner';
import { Cron } from 'croner';
import cronstrue from 'cronstrue';

import { release } from '../scripts/dataset/index.js';
Expand Down Expand Up @@ -34,5 +34,5 @@ if (!schedule) {
logger.info('The scheduler is running…');
logger.info(`Dataset will be published ${humanReadableSchedule.toLowerCase()} in the timezone of this machine`);

cron(config.get('@opentermsarchive/engine.dataset.publishingSchedule'), () => release(options));
new Cron(config.get('@opentermsarchive/engine.dataset.publishingSchedule'), () => release(options)); // eslint-disable-line no-new
}
2 changes: 1 addition & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"dataset": {
"title": "sandbox",
"versionsRepositoryURL": "https://github.com/OpenTermsArchive/sandbox",
"versionsRepositoryURL": "https://github.com/OpenTermsArchive/sandbox-declarations",
"publishingSchedule": "30 8 * * MON"
}
}
Expand Down
Loading
Loading