Skip to content

Commit 88be120

Browse files
authored
chore: prepare for v4 release (#76)
1 parent eb1b08c commit 88be120

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

CHANGELOG.md

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

3-
## [Unreleased]
3+
## [4.0.0] - 2024-11-17
44

55
### Changed
66

77
- **Breaking:** Require Node >= 18
8-
- **Breaking:** Require gulp v5
8+
- **Breaking:** Require gulp v4
99
- **Breaking:** Switch to [ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
1010

1111
### Added
1212

13-
- Add plugin error when a `from` or `to` encoding is unsupported
13+
- Add TypeScript type declarations
1414
- Add warning when `from` and `to` options are identical
15-
- Add warning when `iconv` options are invalid
15+
- Add warning when `iconv` option is of the wrong type
1616

1717
## [3.0.0] - 2022-11-11
1818

@@ -71,7 +71,7 @@
7171

7272
Initial release with support for file buffers
7373

74-
[Unreleased]: https://github.com/heldinz/gulp-convert-encoding/compare/v3.0.0...HEAD
74+
[4.0.0]: https://github.com/heldinz/gulp-convert-encoding/releases/tag/v4.0.0
7575
[3.0.0]: https://github.com/heldinz/gulp-convert-encoding/releases/tag/v3.0.0
7676
[2.1.0]: https://github.com/heldinz/gulp-convert-encoding/releases/tag/v2.1.0
7777
[2.0.1]: https://github.com/heldinz/gulp-convert-encoding/releases/tag/v2.0.1

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] ![Build Status][ci-image] [![Coveralls Status][coveralls-image]][coveralls-url]
44

5-
> Convert character encodings using [iconv-lite](https://github.com/ashtuchkin/iconv-lite). Supports streams.
5+
Convert character encodings in gulp v4 using [iconv-lite](https://github.com/ashtuchkin/iconv-lite). Supports streams.
6+
7+
> [!NOTE]
8+
> As of gulp v5, this plugin is redundant: gulp v5 includes native support for transcoding text files using iconv-lite.
9+
>
10+
> You can migrate away from this plugin by passing `from` and `to` as `options.encoding` to `src` and `dest` respectively. The default encoding is `utf8`.
611
712
## Install
813

@@ -19,15 +24,15 @@ import convertEncoding from 'gulp-convert-encoding';
1924
export default () =>
2025
gulp
2126
.src('src/file.txt')
22-
.pipe(convertEncoding({ from: 'iso-8859-1' }))
27+
.pipe(convertEncoding({ from: 'latin1' }))
2328
.pipe(gulp.dest('dist'));
2429
```
2530

2631
## API
2732

2833
### convertEncoding(options)
2934

30-
> [!IMPORTANT]
35+
> [!IMPORTANT]
3136
> You must provide one or both of the `from` and `to` options.
3237
> [Supported encodings](https://github.com/ashtuchkin/iconv-lite/wiki/Supported-Encodings) are listed on the iconv-lite wiki.
3338

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-convert-encoding",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "Convert character encodings using iconv-lite.",
55
"license": "MIT",
66
"repository": "heldinz/gulp-convert-encoding",

0 commit comments

Comments
 (0)