From 0db60ac424de5a4314f450759981f1029fe858c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2020 14:22:55 +0000 Subject: [PATCH 1/5] build(deps): bump js-yaml from 3.12.2 to 3.13.1 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.2 to 3.13.1. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.1) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f3404a0..1cbb923 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4427,9 +4427,9 @@ "dev": true }, "js-yaml": { - "version": "3.12.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.2.tgz", - "integrity": "sha512-QHn/Lh/7HhZ/Twc7vJYQTkjuCa0kaCcDcjK5Zlk2rvnUpy7DxMJ23+Jc2dcyvltwQVg1nygAVlB2oRDFHoRS5Q==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { "argparse": "^1.0.7", From fa58143341bff54adc32c0ed5014f90815eb04e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2020 14:22:55 +0000 Subject: [PATCH 2/5] build(deps): bump mixin-deep from 1.3.1 to 1.3.2 Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f3404a0..ec2d1b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4746,9 +4746,9 @@ "dev": true }, "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { "for-in": "^1.0.2", From 425787174950a561dc14d18dbc1ba08e6cc8388b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2020 14:22:58 +0000 Subject: [PATCH 3/5] build(deps): bump lodash from 4.17.11 to 4.17.15 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f3404a0..33ab814 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4568,9 +4568,9 @@ } }, "lodash": { - "version": "4.17.11", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", "dev": true }, "lodash.sortby": { From 8bfed98b7f1c45384ed40ad3ca24664254e26865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9lson=20Rangel?= Date: Sat, 28 Mar 2020 16:27:00 -0300 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20remove=20'i'=20e=20'u'=20da=20lista?= =?UTF-8?q?=20de=20palavras=20a=20n=C3=A3o=20serem=20capitalizadas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #14 --- src/index.test.js | 6 ++++++ src/keep-lowercase.js | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.test.js b/src/index.test.js index 1cff7dd..3b3b454 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -72,6 +72,12 @@ describe('With prepositions', () => { const after = 'Aracaju em Boas Mãos' expect(capitalize(before)).toEqual(after) }) + + it('capitalize("D. PEDRO I") should return "D. Pedro I"', () => { + const before = 'D. PEDRO I' + const after = 'D. Pedro I' + expect(capitalize(before)).toEqual(after) + }) }) describe('With initials', () => { diff --git a/src/keep-lowercase.js b/src/keep-lowercase.js index e80e624..51b36e4 100644 --- a/src/keep-lowercase.js +++ b/src/keep-lowercase.js @@ -10,7 +10,6 @@ const keepLowercase = [ 'dos', 'e', 'em', - 'i', 'na', 'nas', 'no', @@ -18,7 +17,6 @@ const keepLowercase = [ 'o', 'por', 'sem', - 'u', ] export default keepLowercase From b81a46293f198be23eafa7e7c09802b0ada9a24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9lson=20Rangel?= Date: Sat, 28 Mar 2020 16:41:28 -0300 Subject: [PATCH 5/5] release: v0.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix: remove 'i' e 'u' da lista de palavras a não serem capitalizadas --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2bcba32..37c3ea8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "capitalize-pt-br", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 75d23a4..0bdda15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "capitalize-pt-br", - "version": "0.4.0", + "version": "0.5.0", "description": "A library for capitalizing each word's first letter of a given string", "main": "dist/capitalize-pt-br.min.js", "typings": "dist/index.d.ts",