Skip to content

Commit d4debf8

Browse files
authored
Prepare release 2.43.0 (#394)
1 parent 9da82f6 commit d4debf8

7 files changed

+18
-25
lines changed

.changeset/dirty-years-sparkle.md

-9
This file was deleted.

.changeset/friendly-bottles-unite.md

-5
This file was deleted.

.changeset/spotty-steaks-hide.md

-5
This file was deleted.

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 2.43.0
4+
5+
### Minor Changes
6+
7+
- 6e94f97: Bundle with ESM exports.
8+
9+
- The recommended way to use mappersmith in ESM projects is to do `import { forge } from 'mappersmith'` rather than the old `import forge from 'mappersmith'`. The reason is because test runners like jest and vitest might get confused when mixing named/default exports together with ESM, even though tsc and node has no problems with it.
10+
- A similar recommendation change goes for importing middleware: do `import { EncodeJsonMiddleware } from 'mappersmith/middleware'` (note the `mappersmith/middleware` folder) rather than deep import `import EncodeJsonMiddleware from 'mappersmith/middleware/encode-json'`. We still support the old import, but it will be deprecated in the future.
11+
- The same recommendation goes for importing gateway: do `import { FetchGateway } from 'mappersmith/gateway'` (note the `mappersmith/gateway` folder) rather than deep import `import FetchGateway from 'mappersmith/gateway/fetch'`. We still support the old import, but it will be deprecated in the future.
12+
13+
- 9da82f6: Fixes memory leak when using http(s) agent with keep-alive
14+
15+
### Patch Changes
16+
17+
- e01114f: Fixed missing type declaration for `unusedMocks`
18+
319
## 2.42.0
420

521
### Minor Changes

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ or
6161
yarn add mappersmith
6262
```
6363

64-
#### Browser
65-
66-
Download the tag/latest version from the dist folder.
67-
6864
#### Build from the source
6965

7066
Install the dependencies

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mappersmith",
3-
"version": "2.43.0-beta.1",
3+
"version": "2.43.0",
44
"description": "It is a lightweight rest client for node.js and the browser",
55
"author": "Tulio Ornelas <[email protected]>",
66
"contributors": [

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '2.43.0-beta.1'
1+
export const version = '2.43.0'

0 commit comments

Comments
 (0)