@palmgrove/nefdb 1.0.0 → 1.0.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 CHANGED
@@ -5,6 +5,13 @@ 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
+ ## [1.0.1] - 2026-06-20
9
+
10
+ ### Fixed
11
+
12
+ - README raw-data examples now use `readFileSync` with `new URL(..., import.meta.url)` so the CSV and JSON files work in Node as well as Bun.
13
+ - Added `./package.json` to the exports map so package metadata can be resolved directly.
14
+
8
15
  ## [1.0.0] - 2026-06-20
9
16
 
10
17
  ### Added
package/README.md CHANGED
@@ -92,14 +92,22 @@ const domesticWastewater = nefdb.waste.wastewater("domestic");
92
92
 
93
93
  ### Raw data files
94
94
 
95
- The current release also ships as JSON and CSV exports:
95
+ The current release also ships as JSON and CSV exports. These paths point to the static files shipped with the package:
96
96
 
97
97
  ```typescript
98
- import factors from "@palmgrove/nefdb/data/json";
99
- ```
100
-
101
- ```typescript
102
- import csv from "@palmgrove/nefdb/data/csv";
98
+ import { readFileSync } from "node:fs";
99
+
100
+ const csv = readFileSync(
101
+ new URL("@palmgrove/nefdb/data/nefdb_v1.csv", import.meta.url),
102
+ "utf8"
103
+ );
104
+
105
+ const json = JSON.parse(
106
+ readFileSync(
107
+ new URL("@palmgrove/nefdb/data/nefdb_v1.json", import.meta.url),
108
+ "utf8"
109
+ )
110
+ );
103
111
  ```
104
112
 
105
113
  ## Methodology
@@ -134,4 +142,4 @@ bun test
134
142
  ## Repository
135
143
 
136
144
  - GitHub: [https://github.com/palmgrove/nefdb](https://github.com/palmgrove/nefdb)
137
- - Current version: `1.0.0`
145
+ - Current version: `1.0.1`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmgrove/nefdb",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Nigeria Emission Factor Database — the first open, versioned emission factor database for Nigerian operations",
5
5
  "keywords": [
6
6
  "nigeria",
@@ -30,7 +30,8 @@
30
30
  "require": "./dist/index.cjs"
31
31
  },
32
32
  "./data/json": "./data/nefdb_v1.json",
33
- "./data/csv": "./data/nefdb_v1.csv"
33
+ "./data/csv": "./data/nefdb_v1.csv",
34
+ "./package.json": "./package.json"
34
35
  },
35
36
  "files": [
36
37
  "dist/",