Skip to content

Commit

Permalink
commit for publish release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-craft committed Aug 14, 2023
1 parent d1e8d87 commit b0abbc0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
16 changes: 9 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased] 2.0.0
## [Unreleased]

### TODO

- Methods:
- `isAlphaDigit` | `isNotAlphaDigit`
- `wordsToArray`

## [2.0.0] - 2023-08-14

### Changed

Expand All @@ -20,12 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `containsNumber` | `notContainsNumber`
- `containsAlpha` | `notContainsAlpha`

### TODO

- Methods:
- `isAlphaDigit` | `isNotAlphaDigit`
- `wordsToArray`

## [1.0.1] - 2023-08-13

### Added
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-craft",
"version": "1.0.1",
"version": "2.0.0",
"description": "Simple string manipulation library for TypeScript",
"main": "dist/string.js",
"types": "dist/string.d.ts",
Expand All @@ -12,7 +12,10 @@
},
"keywords": [
"typescript",
"string"
"string",
"string operations",
"string manipulation",
"string utility"
],
"files": [
"dist",
Expand Down
9 changes: 5 additions & 4 deletions src/string.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('String', () => {

describe('removeAccents', () => {
it.each([
['tété', 'tete'],
['tété!', 'tete!'],
['à côté', 'a cote'],
["À l'époque", "A l'epoque"],
['À É Î Ô Û à é î ô û', 'A E I O U a e i o u'],
Expand Down Expand Up @@ -386,9 +386,10 @@ describe('String', () => {
// TODO : FEATURE LIST:

// 1: Checks whether data contains only alpha and digit characters. (Alphanumeric)
// isAlphaDigit('year2020'); => true
// isAlphaDigit('1448'); => true
// isAlphaDigit('40-20'); => false
// isAlphaDigit('year2023'); => true
// isAlphaDigit('Hello'); => false
// isAlphaDigit('1448'); => false
// isAlphaDigit('40-abc'); => false

// 2: retourne les mots d'une phrase dans un tableau
// wordsToArray('welcome to Earth'); // => ['welcome', 'to', 'Earth']
Expand Down

0 comments on commit b0abbc0

Please sign in to comment.