Skip to content

Commit 5904624

Browse files
committed
udpate changelog and readme
1 parent a3261c8 commit 5904624

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
## 7.1.0 (2026-01-15)
22

3+
##### Security
4+
5+
* Replace deprecated `request` package with `axios` and `form-data` to address critical vulnerability (CVE-2023-28155)
6+
* Add path traversal protection with URI encoding in resource methods
7+
8+
##### Bug Fixes
9+
10+
* Fix bulk verification endpoints (US and International) to send JSON body format instead of form-encoded data
11+
* Fix object iteration to use `Object.keys()` instead of `for...in` to avoid prototype chain issues
12+
13+
##### Testing
14+
15+
* Add comprehensive unit test suite with HTTP mocking using `nock` (94 tests)
16+
* Add integration test suite for live API validation (24 tests)
17+
* Unit tests no longer require API keys - mocked responses enable offline development
18+
* Integration tests run separately with `npm run test:integration`
19+
320
##### Maintenance
421

5-
* Replace deprecated `request` package with `axios` and `form-data`
22+
* Update README with current testing instructions
23+
* Clean up unreachable error handling code in HTTP client
624

725
#### 7.0.1 (2025-11-12)
826

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,22 @@ To contribute, please see the [CONTRIBUTING.md](https://github.com/lob/lob-node/
146146

147147
## Testing
148148

149-
To run the tests with coverage:
149+
To run unit tests with coverage:
150150

151151
```
152-
LOB_API_KEY=YOUR_TEST_API_KEY npm test
152+
npm test
153153
```
154154

155-
To run the tests without coverage:
155+
To run integration tests (requires API keys):
156156

157157
```
158-
LOB_API_KEY=YOUR_TEST_API_KEY npm run test-no-cover
158+
TEST_API_KEY=your_test_key npm run test:integration
159+
```
160+
161+
Some integration tests require a live API key:
162+
163+
```
164+
TEST_API_KEY=your_test_key LIVE_API_KEY=your_live_key npm run test:integration
159165
```
160166

161167
=======================

0 commit comments

Comments
 (0)