coh-content-db-homecoming 2.0.0-rc.5 → 2.0.0-rc.7

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.
@@ -48,6 +48,7 @@ jobs:
48
48
  run: |
49
49
  mkdir -p pages
50
50
  cp -r src/main/resources/* pages/
51
+ cp dist/bundle.head.json pages/
51
52
  cp dist/bundle.json pages/
52
53
 
53
54
  - name: Upload Pages Artifact
package/CHANGELOG.md CHANGED
@@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [2.0.0] - 2025-03-12
8
+ ## [2.0.0-rc.7] - 2025-04-19
9
9
 
10
10
  ### Added
11
11
 
12
+ - [#176](https://github.com/n15g/coh-content-db-homecoming/pull/176) - 2025 Anniversary badges
12
13
  - Mission and Contact data.
13
14
  - Bundle data is now available as a JSON export.
14
15
  - CHANGELOG.md
package/README.md CHANGED
@@ -16,8 +16,18 @@ Initialize a database with the homecoming data pack:
16
16
  import { CohContentDatabase } from 'coh-content-db'
17
17
  import { HOMECOMING } from 'coh-content-db-homecoming'
18
18
 
19
- const database = new CohContentDatabase()
20
- database.load(HOMECOMING)
19
+ const database = new CohContentDatabase(HOMECOMING)
20
+ ```
21
+
22
+ or from the published JSON:
23
+
24
+ ```typescript
25
+ import { BundleData, CohContentDatabase } from 'coh-content-db'
26
+
27
+ const response = await fetch('https://n15g.github.io/coh-content-db-homecoming/bundle.json')
28
+ const bundle = await response.json() as BundleData
29
+
30
+ const database = new CohContentDatabase(bundle)
21
31
  ```
22
32
 
23
33
  # Development
@@ -1 +1 @@
1
- {"name":"Homecoming","description":"Content data for the CoH: Homecoming server.","repositoryUrl":"https://github.com/n15g/coh-content-db-homecoming","changelogUrl":"https://github.com/n15g/coh-content-db-homecoming/blob/master/CHANGELOG.md","links":[{"title":"Homecoming Forums","href":"https://forums.homecomingservers.com/"}],"version":"2.0.0-rc.5"}
1
+ {"name":"Homecoming","description":"Content data for the CoH: Homecoming server.","repositoryUrl":"https://github.com/n15g/coh-content-db-homecoming","changelogUrl":"https://github.com/n15g/coh-content-db-homecoming/blob/master/CHANGELOG.md","links":[{"title":"Homecoming Forums","href":"https://forums.homecomingservers.com/"}],"version":"2.0.0-rc.7"}