Skip to content

Commit f24d084

Browse files
committed
Merge branch 'alpha'
2 parents 75aae34 + ecd8e0f commit f24d084

12 files changed

Lines changed: 5593 additions & 69 deletions

File tree

CHANGELOG.md

Lines changed: 46 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [0.1.8] - 2025-04-14
5+
## [0.1.9] - 2025-05-12
66

77
### 🚀 Features
88

@@ -14,12 +14,14 @@ All notable changes to this project will be documented in this file.
1414
- Added the `NaicsSector`, `NaicsSubsector` and `NaicsCategory` enums to represent different levels of NAICS code categories.
1515
- The NaicsSector::from_key method is now NaicsSector::from_code.
1616
- Added the `NaicsSubcategory` type to represent Naics industry codes with a length of five digits.
17+
- NaicsIndustry enum added to represent the full six-digit NAICS codes.
1718

1819
### 🐛 Bug Fixes
1920

2021
- Explicit version numbers added to workspace members.
2122
- NaicsSubcategory variants and method values corrected in response to unit testing.
2223
- `NaicsCategory` variants and methods corrected in response to unit testing.
24+
- Typo corrections in the reference file for NAICS codes.
2325

2426
### 🚜 Refactor
2527

@@ -47,6 +49,8 @@ All notable changes to this project will be documented in this file.
4749
- Unused tests for json removed.
4850
- Tests added for `Component` and `AocSta` types validating enum variants against the BEA response.
4951
- Verification testings for Naics types added validating variant names, description and codes against the .csv files in the cave.
52+
- Check_naics_industry added to check_naics test suite.
53+
- Check_naics_industry added to check_naics test suite.
5054

5155
### ⚙️ Miscellaneous Tasks
5256

@@ -58,6 +62,10 @@ All notable changes to this project will be documented in this file.
5862
- Rust fmt changes.
5963
- Naics types added to mod and lib files.
6064
- Clippy corrected `manual implementation of ok` corrected to use the ok method.
65+
- Version incremented to 0.1.9.
66+
- NaicsIndustry enum added to public visibility in lib.rs and mod.rs.
67+
- Minor update to tokio and patch updates to clap and jiff dependencies.
68+
- Locked flag added to cargo-dist and cargo-release installs.
6169

6270
## [0.1.6] - 2025-03-31
6371

@@ -135,52 +143,32 @@ All notable changes to this project will be documented in this file.
135143

136144
### 🚀 Features
137145

138-
- Methods `initial_load`, `initial_load_continued`, `retry_load` and `download_with_history` added to the `Dataset` type.
139-
- Method variants for `with_events` added to the Queue and History types to facilitate benchmarking.
140-
- GdpDatum type added to represent return values for the `Dataset::GDPbyIndustry` variant.
141-
- Download support added to GdpByIndustry via the GdpByIndustryIterator type.
142146
- 'Style' type added to facilitate progress bars drawn to the console.
143147
- Method `from_value` added to `Frequency` to provide a canonical means of interpreting BEA parameter values.
144148
- Added the `roman_numeral_quarter` function mapping Roman Numeral values in the `Quarter` field to the `jiff::civil::Date` type.
145149
- `GdpData` type added for the GDPbyIndustry dataset. Companion variant `Data::GdpData` added.
146150
- Progress bar added to `Queue` file loading.
147151
- Progress bars added to `History` load and download methods.
148152

149-
### 🐛 Bug Fixes
150-
151-
- Note variant added to the Addendum type.
152-
- The MneError type now recognizes multiple error codes returned in an array.
153-
- The size limiting check no longer prevents users from requesting files larger than the 100MB limit.
154-
- Logical bug patched in the impl for `Chunks` from `History`. The inner vector will now include the final `Chunk`.
155-
- Off-by-one logical error fixed for generating frequency parameters from a list.
156-
157153
### 🚜 Refactor
158154

159-
- The Error cap has been raised to 29, and the Call cap to 89, since size tracking is now enabled.
160-
- The History::contains method has been removed in favor of calling `contains_key` directly on the inner BTreeMap.
161-
- Streamlined error handling for JsonParseError variants.
162155
- Various console logs lowered from Info to Trace, now that the functions of interest are more stable.
163156
- `MneDiData` and `FixedAssetsData` added to the root namespace following the library convention.
164157

165158
### 📚 Documentation
166159

167-
- Method descriptions added to the `dataset` module.
168-
- Descriptions added for `History` methods.
169160
- Description added for the `roman_numeral_quarter` function.
170161
- Descriptions added to `Frequency` methods.
171162
- Module and function level descriptions added the `check` module.
172163
- Progress statistics updated in the root `README.md`.
173164

174165
### 🧪 Testing
175166

176-
- Coverage added for the `History` methods `initial_load`, `initial_load_continued`, `retry_load` and `download_with_history`.
177-
- Benchmarking added to the `with_event` family of methods for the Queue and Chunks types.
178167
- Additional troubleshooting tests added for loading GDPbyIndustry files.
179168
- Duplicate test removed.
180169

181170
### ⚙️ Miscellaneous Tasks
182171

183-
- Increment version to 0.1.3 in Cargo.toml.
184172
- Changelog updated for version 0.1.3.
185173
- Version incremented to 0.1.4 in Cargo.toml.
186174
- Changelog action added to justfile.
@@ -191,6 +179,43 @@ All notable changes to this project will be documented in this file.
191179
- Deletion of dead legacy code.
192180
- Changelog updated for version 0.1.4.
193181

182+
## [0.1.3] - 2025-03-03
183+
184+
### 🚀 Features
185+
186+
- Methods `initial_load`, `initial_load_continued`, `retry_load` and `download_with_history` added to the `Dataset` type.
187+
- Method variants for `with_events` added to the Queue and History types to facilitate benchmarking.
188+
- GdpDatum type added to represent return values for the `Dataset::GDPbyIndustry` variant.
189+
- Download support added to GdpByIndustry via the GdpByIndustryIterator type.
190+
191+
### 🐛 Bug Fixes
192+
193+
- Note variant added to the Addendum type.
194+
- The MneError type now recognizes multiple error codes returned in an array.
195+
- The size limiting check no longer prevents users from requesting files larger than the 100MB limit.
196+
- Logical bug patched in the impl for `Chunks` from `History`. The inner vector will now include the final `Chunk`.
197+
- Off-by-one logical error fixed for generating frequency parameters from a list.
198+
199+
### 🚜 Refactor
200+
201+
- The Error cap has been raised to 29, and the Call cap to 89, since size tracking is now enabled.
202+
- The History::contains method has been removed in favor of calling `contains_key` directly on the inner BTreeMap.
203+
- Streamlined error handling for JsonParseError variants.
204+
205+
### 📚 Documentation
206+
207+
- Method descriptions added to the `dataset` module.
208+
- Descriptions added for `History` methods.
209+
210+
### 🧪 Testing
211+
212+
- Coverage added for the `History` methods `initial_load`, `initial_load_continued`, `retry_load` and `download_with_history`.
213+
- Benchmarking added to the `with_event` family of methods for the Queue and Chunks types.
214+
215+
### ⚙️ Miscellaneous Tasks
216+
217+
- Increment version to 0.1.3 in Cargo.toml.
218+
194219
## [0.1.2] - 2025-02-23
195220

196221
### 🐛 Bug Fixes

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["bears_ecology", "bears_health", "bears", "bears_species"]
44

55
[workspace.package]
6-
version = "0.1.8"
6+
version = "0.1.9"
77
edition = "2024"
88
authors = ["Erik Rose <erik.w.rose@gmail.com>"]
99
description = "A Rust wrapper for the Bureau of Economic Analysis (BEA) REST API."
@@ -14,13 +14,13 @@ keywords = ["economics", "finance", "rest"]
1414
categories = ["asynchronous", "finance"]
1515

1616
[workspace.dependencies]
17-
bears_ecology = { version = "0.1.8", path = "./bears_ecology" }
18-
bears_health = { version = "0.1.8", path = "./bears_health" }
19-
bears = { version = "0.1.8", path = "./bears" }
20-
bears_species = { version = "0.1.8", path = "./bears_species" }
17+
bears_ecology = { version = "0.1.9", path = "./bears_ecology" }
18+
bears_health = { version = "0.1.9", path = "./bears_health" }
19+
bears = { version = "0.1.9", path = "./bears" }
20+
bears_species = { version = "0.1.9", path = "./bears_species" }
2121
assert-json-diff = "2.0.2"
2222
bytesize = { version = "2.0.1", features = ["serde"] }
23-
clap = { version = "4.5.36", features = ["derive"] }
23+
clap = { version = "4.5.38", features = ["derive"] }
2424
console = "0.15.11"
2525
convert_case = "0.8.0"
2626
csv = "1.3.1"
@@ -30,15 +30,15 @@ derive_more = { version = "2.0.1", features = ["full"] }
3030
derive_setters = "0.1.6"
3131
dotenvy = "0.15.7"
3232
indicatif = { version = "0.17.11", features = ["rayon", "tokio"] }
33-
jiff = { version = "0.2.8", features = ["serde"] }
33+
jiff = { version = "0.2.13", features = ["serde"] }
3434
nom = "8.0.0"
3535
rayon = "1.10.0"
3636
reqwest = { version = "0.12.15", features = ["json"] }
3737
serde = { version = "1.0.219", features = ["derive"] }
3838
serde_json = "1.0.140"
3939
similar = { version = "2.7.0", features = ["serde"] }
4040
strum = { version = "0.27.1", features = ["derive", "strum_macros"] }
41-
tokio = { version = "1.44.2", features = ["macros", "rt-multi-thread"] }
41+
tokio = { version = "1.45.0", features = ["macros", "rt-multi-thread"] }
4242
tracing = "0.1.41"
4343
tracing-log = "0.2.0"
4444
tracing-serde = "0.2.0"

bears_health/cave/naics_industry.csv

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ naics_code,naics_title,name
181181
312230,Tobacco Manufacturing ,TobaccoManufacturing
182182
313110,"Fiber, Yarn, and Thread Mills ",FiberYarnAndThreadMills
183183
313210,Broadwoven Fabric Mills,BroadwovenFabricMills
184-
313220,Narrow Fabric Mills and Schiffli,
185184
313220,Narrow Fabric Mills and Schiffli Machine Embroidery,NarrowFabricMillsAndSchiffliMachineEmbroidery
186185
313230,Nonwoven Fabric Mills,NonwovenFabricMills
187186
313240,Knit Fabric Mills,KnitFabricMills
@@ -748,7 +747,7 @@ naics_code,naics_title,name
748747
532210,Consumer Electronics and Appliances Rental,ConsumerElectronicsAndAppliancesRental
749748
532220,Formal Wear and Costume Rental,FormalWearAndCostumeRental
750749
532230,Video Tape and Disc Rental,VideoTapeAndDiscRental
751-
532281,Recreational Goods Rental,RecreationalGoodsRental
750+
532281,Recreational Goods Rental Parent,RecreationalGoodsRentalParent
752751
532282,Medical Equipment and Supplies Rental,MedicalEquipmentAndSuppliesRental
753752
532283,Home Health Equipment and Supplies Rental,HomeHealthEquipmentAndSuppliesRental
754753
532284,Recreational Goods Rental,RecreationalGoodsRental
@@ -810,7 +809,7 @@ naics_code,naics_title,name
810809
541990,"All Other Professional, Scientific, and Technical Services",AllOtherProfessionalScientificAndTechnicalServices
811810
551111,Offices of Bank Holding Companies,OfficesOfBankHoldingCompanies
812811
551112,Offices of Other Holding Companies,OfficesOfOtherHoldingCompanies
813-
551113,"Corporate, Subsidiary, and Regional Managing Offices",CorporateSubsidiaryAndRegionalManagingOffices
812+
551113,"Corporate, Subsidiary, and Regional Managing Offices Parent",CorporateSubsidiaryAndRegionalManagingOfficesParent
814813
551114,"Corporate, Subsidiary, and Regional Managing Offices",CorporateSubsidiaryAndRegionalManagingOffices
815814
561110,Office Administrative Services,OfficeAdministrativeServices
816815
561210,Facilities Support Services,FacilitiesSupportServices
@@ -974,7 +973,6 @@ naics_code,naics_title,name
974973
812111,Barber Shops,BarberShops
975974
812112,Beauty Salons,BeautySalons
976975
812113,Nail Salons,NailSalons
977-
812113,Nail Salons,NailSalons
978976
812191,Diet and Weight Reducing Centers,DietAndWeightReducingCenters
979977
812199,Other Personal Care Services,OtherPersonalCareServices
980978
812210,Funeral Homes and Funeral Services,FuneralHomesAndFuneralServices

bears_health/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ pub use datasets::{check_datasets, datasets_from_file, datasets_to_json};
189189
pub use histories::download_summary;
190190
pub use indicators::check_indicators;
191191
pub use naics::{
192-
check_naics_category, check_naics_sectors, check_naics_subcategory, check_naics_subsectors,
192+
check_naics_category, check_naics_industry, check_naics_sectors, check_naics_subcategory,
193+
check_naics_subsectors,
193194
};
194195
pub use parameter_values::{
195196
parameter_value_filtered, parameter_value_from_json, parameter_values_from_file,

0 commit comments

Comments
 (0)