oilpriceapi 0.5.0 → 0.5.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/README.md CHANGED
@@ -625,12 +625,15 @@ All errors extend `OilPriceAPIError`:
625
625
 
626
626
  The API provides prices for the following commodities:
627
627
 
628
- - **Crude Oil**: WTI, Brent Crude
629
- - **Refined Products**: Gasoline, Diesel (state averages + station-level), Heating Oil, Jet Fuel
630
- - **Natural Gas**: US Natural Gas, EU Natural Gas, UK Natural Gas
631
- - **And more...**
632
-
633
- See the [full list of commodities](https://www.oilpriceapi.com/commodities) in the documentation.
628
+ - **Crude Oil**: `WTI_USD`, `BRENT_CRUDE_USD`
629
+ - **Refined Products**: `GASOLINE_USD`, `DIESEL_USD` (state averages + station-level), `HEATING_OIL_USD`, `JET_FUEL_USD`
630
+ - **Natural Gas**: `NATURAL_GAS_USD`, `DUTCH_TTF_EUR`, `NATURAL_GAS_GBP`
631
+ - **Coal** (8 Endpoints):
632
+ - **US Spot**: `CAPP_COAL_USD`, `PRB_COAL_USD`, `ILLINOIS_COAL_USD`
633
+ - **International**: `NEWCASTLE_COAL_USD`, `COKING_COAL_USD`, `CME_COAL_USD`
634
+ - **Historical**: `NYMEX_APPALACHIAN_USD`, `NYMEX_WESTERN_RAIL_USD`
635
+
636
+ See the [full list of 79 commodities](https://www.oilpriceapi.com/commodities) in the documentation.
634
637
 
635
638
  ## Pricing & Rate Limits
636
639
 
package/dist/client.js CHANGED
@@ -126,10 +126,9 @@ export class OilPriceAPI {
126
126
  headers: {
127
127
  'Authorization': `Bearer ${this.apiKey}`,
128
128
  'Content-Type': 'application/json',
129
- 'User-Agent': 'oilpriceapi-node/0.5.0',
130
- 'X-SDK-Language': 'javascript',
131
- 'X-SDK-Version': '0.5.0',
132
- 'X-Client-Type': 'sdk',
129
+ 'User-Agent': 'oilpriceapi-node/0.5.1 node/' + process.version,
130
+ 'X-Api-Client': 'oilpriceapi-node',
131
+ 'X-Client-Version': '0.5.1',
133
132
  },
134
133
  signal: controller.signal,
135
134
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oilpriceapi",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Official Node.js SDK for Oil Price API - Real-time and historical oil & commodity prices",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",