Add safe parameter to base64.encodeMime (#20559)

* Improve `encodeMime` signature

* `string` to `openArray[char or byte]`
* `safe` parameter

* Fix

* Revert "Fix"

This reverts commit a394c505c2ab751621c24fd29b17e97c01251c1f.

* Remove encodeMime's openArray overload

* Document the `safe` parameter

* Add changelog entry
This commit is contained in:
Amjad Ben Hedhili 2022-10-21 08:25:25 +01:00 • committed by GitHub
commit 5b195ab0f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -134,6 +134,7 @@
`toggleAttribute`, and `matches` to `std/dom`.
- Added [`jsre.hasIndices`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/hasIndices)
- Added `capacity` for `string` and `seq` to return the current capacity, see https://github.com/nim-lang/RFCs/issues/460
- Added `safe` parameter to `base64.encodeMime`
[//]: # "Deprecations:"
- Deprecated `selfExe` for Nimscript.