@larsgw/formica 0.7.2 → 0.8.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/eslint.config.js +34 -0
  3. package/lib/bin/SHEETS.js +0 -0
  4. package/lib/bin/generate-linked-data.d.ts +2 -0
  5. package/lib/bin/generate-linked-data.js +740 -0
  6. package/lib/bin/process-resources-index.js +36 -3
  7. package/lib/bin/process-resources.js +40 -7
  8. package/lib/bin/util.js +40 -8
  9. package/lib/bin/validate-catalog.js +36 -3
  10. package/lib/bin/validate-resources-text.js +36 -3
  11. package/lib/catalog/entities.js +2 -2
  12. package/lib/catalog/entity.js +0 -2
  13. package/lib/catalog/index.js +3 -3
  14. package/lib/catalog/tables/author.js +5 -3
  15. package/lib/catalog/tables/index.js +4 -4
  16. package/lib/catalog/tables/place.js +3 -1
  17. package/lib/catalog/tables/publisher.js +5 -3
  18. package/lib/catalog/tables/taxon.js +3 -1
  19. package/lib/catalog/tables/work.js +5 -5
  20. package/lib/catalog/value.d.ts +6 -2
  21. package/lib/catalog/value.js +14 -9
  22. package/lib/csv.js +2 -3
  23. package/lib/index.js +37 -4
  24. package/lib/resources/diff-resource.js +5 -4
  25. package/lib/resources/parse-text.js +45 -12
  26. package/lib/taxon-names/index.js +2 -3
  27. package/package.json +13 -7
  28. package/src/bin/generate-linked-data.ts +709 -0
  29. package/src/bin/process-resources-index.ts +1 -1
  30. package/src/catalog/entity.ts +0 -2
  31. package/src/catalog/tables/author.ts +5 -3
  32. package/src/catalog/tables/index.ts +4 -4
  33. package/src/catalog/tables/place.ts +3 -1
  34. package/src/catalog/tables/publisher.ts +5 -3
  35. package/src/catalog/tables/taxon.ts +3 -1
  36. package/src/catalog/tables/work.ts +5 -5
  37. package/src/catalog/value.ts +7 -5
  38. package/src/module.d.ts +5 -0
  39. package/src/resources/diff-resource.ts +2 -1
  40. package/src/resources/parse-text.ts +1 -0
  41. package/tsconfig.json +2 -1
  42. package/.eslintrc.js +0 -16
  43. package/src/bin/clean-links.ts +0 -96
package/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ # [0.8.0](https://github.com/identification-resources/formica/compare/v0.7.3...v0.8.0) (2025-05-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **catalog:** remove unused obsolete 'clean-links' script ([af1ecc2](https://github.com/identification-resources/formica/commit/af1ecc2fdd0a80bb8fa7108f3d52978239d7ef01))
7
+
8
+
9
+ ### Features
10
+
11
+ * **catalog:** implement generation of linked data ([334616e](https://github.com/identification-resources/formica/commit/334616e2e12c0d91e49f84f06bdd00ab7a238b8e))
12
+
13
+
14
+
15
+ ## [0.7.3](https://github.com/identification-resources/formica/compare/v0.7.2...v0.7.3) (2025-04-17)
16
+
17
+
18
+ ### Features
19
+
20
+ * **catalog:** update validation for identifiers ([156a703](https://github.com/identification-resources/formica/commit/156a7036ab09c411d091bc9d0f628831a30ba3f5))
21
+
22
+
23
+
1
24
  ## [0.7.2](https://github.com/identification-resources/formica/compare/v0.7.1...v0.7.2) (2025-04-02)
2
25
 
3
26
 
@@ -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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};