@larsgw/formica 0.7.3 → 0.8.1
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/CHANGELOG.md +29 -0
- package/eslint.config.js +34 -0
- package/lib/bin/SHEETS.js +0 -0
- package/lib/bin/generate-linked-data.d.ts +2 -0
- package/lib/bin/generate-linked-data.js +784 -0
- package/lib/bin/process-resources-index.js +36 -3
- package/lib/bin/process-resources.js +40 -7
- package/lib/bin/util.js +40 -8
- package/lib/bin/validate-catalog.js +36 -3
- package/lib/bin/validate-linked-data.js +0 -0
- package/lib/bin/validate-resources-text.js +36 -3
- package/lib/catalog/entities.js +2 -2
- package/lib/catalog/entity.js +0 -2
- package/lib/catalog/index.js +3 -3
- package/lib/catalog/tables/author.js +1 -1
- package/lib/catalog/tables/place.js +1 -1
- package/lib/catalog/tables/publisher.js +1 -1
- package/lib/catalog/value.d.ts +1 -1
- package/lib/catalog/value.js +9 -8
- package/lib/csv.js +2 -3
- package/lib/index.js +37 -4
- package/lib/resources/diff-resource.js +5 -4
- package/lib/resources/parse-text.js +46 -13
- package/lib/taxon-names/index.js +2 -3
- package/package.json +13 -7
- package/src/bin/generate-linked-data.ts +755 -0
- package/src/bin/process-resources-index.ts +1 -1
- package/src/catalog/entity.ts +0 -2
- package/src/catalog/tables/author.ts +1 -1
- package/src/catalog/tables/place.ts +1 -1
- package/src/catalog/tables/publisher.ts +1 -1
- package/src/catalog/value.ts +2 -4
- package/src/module.d.ts +5 -0
- package/src/resources/diff-resource.ts +2 -1
- package/src/resources/parse-text.ts +2 -1
- package/tsconfig.json +2 -1
- package/.eslintrc.js +0 -16
- package/src/bin/clean-links.ts +0 -96
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [0.8.1](https://github.com/identification-resources/formica/compare/v0.8.0...v0.8.1) (2025-05-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **catalog:** fix aspects of linked data ([1b2964f](https://github.com/identification-resources/formica/commit/1b2964f46b8409c6a67f0475faf067a80734288c))
|
|
7
|
+
* **catalog:** set display_name to required, as documented ([3f36909](https://github.com/identification-resources/formica/commit/3f36909bbe6261cbee022139050875de37174611))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **resources:** add support for "(sub)gen. nov" pattern ([d2598eb](https://github.com/identification-resources/formica/commit/d2598ebfd2f80d9c2bcc00ce145b9fc229316e5b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# [0.8.0](https://github.com/identification-resources/formica/compare/v0.7.3...v0.8.0) (2025-05-07)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **catalog:** remove unused obsolete 'clean-links' script ([af1ecc2](https://github.com/identification-resources/formica/commit/af1ecc2fdd0a80bb8fa7108f3d52978239d7ef01))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **catalog:** implement generation of linked data ([334616e](https://github.com/identification-resources/formica/commit/334616e2e12c0d91e49f84f06bdd00ab7a238b8e))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
1
30
|
## [0.7.3](https://github.com/identification-resources/formica/compare/v0.7.2...v0.7.3) (2025-04-17)
|
|
2
31
|
|
|
3
32
|
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const { defineConfig } = require('eslint/config')
|
|
2
|
+
|
|
3
|
+
const tsParser = require('@typescript-eslint/parser')
|
|
4
|
+
const typescriptEslint = require('@typescript-eslint/eslint-plugin')
|
|
5
|
+
const js = require('@eslint/js')
|
|
6
|
+
|
|
7
|
+
const { FlatCompat } = require('@eslint/eslintrc')
|
|
8
|
+
|
|
9
|
+
const compat = new FlatCompat({
|
|
10
|
+
baseDirectory: __dirname,
|
|
11
|
+
recommendedConfig: js.configs.recommended,
|
|
12
|
+
allConfig: js.configs.all
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
module.exports = defineConfig([{
|
|
16
|
+
extends: compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
|
|
17
|
+
languageOptions: {
|
|
18
|
+
parser: tsParser,
|
|
19
|
+
},
|
|
20
|
+
plugins: {
|
|
21
|
+
'@typescript-eslint': typescriptEslint,
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
indent: ['error', 4, {
|
|
25
|
+
SwitchCase: 1,
|
|
26
|
+
}],
|
|
27
|
+
'no-unused-vars': 'off',
|
|
28
|
+
'@typescript-eslint/no-unused-vars': ['warn', {
|
|
29
|
+
argsIgnorePattern: '^_',
|
|
30
|
+
varsIgnorePattern: '^_',
|
|
31
|
+
caughtErrorsIgnorePattern: '^_',
|
|
32
|
+
}],
|
|
33
|
+
},
|
|
34
|
+
}])
|
|
File without changes
|