Skip to content

Commit 768901d

Browse files
author
aMarCruz
committed
v1.1.3
- Replace the BSD license with the MIT license. - Bumb new versions in the subrepos. - Update Readme to reflect the global changes. - Update hading of Changelogs. - Update markdownlint config.
1 parent e039889 commit 768901d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+634
-530
lines changed

.markdownlint.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"default": true,
3-
"MD013": false,
4-
"MD024": { "siblings_only": true }
3+
"line-length": false,
4+
"no-duplicate-header": { "siblings_only": true },
5+
"no-inline-html": false
56
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
# Changelog for @jsbits
22

3+
The format of this document is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4+
35
## \[Unreleased]
46

57
### Added
68

79
- `easterDay` function, to calculate Easter day dates.
810
- Badge for bundle size in the Readme of subrepos.
11+
- BrowserStack image.
912

1013
### Changed
1114

15+
- Replace the BSD license with the MIT license.
16+
- Bumb new versions in the suprepos.
17+
- Update Readme to reflect the global changes.
18+
- Update hading of Changelogs.
19+
- Update markdownlint config.
1220
- Update devDependencies
1321
- Keep Rollup v6.8, not all its plugins are prepared for v1
1422
- revised jscc templates for current jscc API style.

LICENSE

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
BSD 2-Clause License
1+
The MIT License
22

3-
Copyright (c) 2018 Alberto Martínez.
4-
All rights reserved.
3+
Copyright (c) 2018-2019 Alberto Martínez
54

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
811

9-
* Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
1114

12-
* Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# JSBits
22

3-
[![License][license-badge]][license-url]
3+
_Public library of professional high-quality functions for JavaScript and TypeScript._
4+
5+
[![License][license-badge]](LICENSE)
46
[![AppVeyor test][appveyor-badge]][appveyor-url]
57
[![Travis test][travis-badge]][travis-url]
68
[![coverage][codecov-badge]][codecov-url]
7-
[![Codacy][codacy-badge]][codacy-url]
8-
[![Code Climate][climate-badge]][climate-url]
9-
10-
Public library of professional high quality functions for JavaScript and TypeScript.
9+
[![code quality][codacy-badge]][codacy-url]
10+
[![maintainability][climate-badge]][climate-url]
1111

1212
The functions of JSBits are written in TypeScript 3 and meet stringent quality requirements.<br>They were designed to be efficient and robust, work in _strict mode_ and are tested with 100% coverage.
1313

@@ -29,41 +29,41 @@ _**NOTE:** This work is in its infancy, I will be adding more functions as my ti
2929

3030
### [addMonths](packages/add-months/README.md)
3131

32-
Adds or sustract X months to any JavaScript Date, local or UTC.
32+
Adds or subtracts N months to any JavaScript Date, local or UTC.
3333

34-
v1.1.1 &ndash; Group: date &ndash; Author: aMarCruz
34+
v1.1.2 &ndash; Group: date &ndash; Author: aMarCruz
3535

3636
### [deepClone](packages/deep-clone/README.md)
3737

3838
Performs a deep cloning of an object own properties and symbols, with loosy or exact behavior.
3939

40-
v1.1.0 &ndash; Group: object &ndash; Author: aMarCruz
40+
v1.1.1 &ndash; Group: object &ndash; Author: aMarCruz
4141

4242
### [easterDay](packages/easter-day/README.md)
4343

44-
Calculates the local date of the Easter day for years up to 9999
44+
Calculates the local date of the Easter day for years up to 9999.
4545

4646
v1.0.0 &ndash; Group: date &ndash; Author: aMarCruz
4747

4848
### [escapeRegexStr](packages/escape-regex-str/README.md)
4949

5050
Escapes special characters in a string, for matching substrings with a RegExp instance.
5151

52-
v1.0.2 &ndash; Group: dev &ndash; Author: aMarCruz
52+
v1.0.3 &ndash; Group: dev &ndash; Author: aMarCruz
5353

5454
### [getPackageVersion](packages/get-package-version/README.md)
5555

5656
_NodeJS only_.
5757

5858
Get the version of the package.json file found in the given directory or in one of its parents.
5959

60-
v1.0.2 &ndash; Group: dev &ndash; Author: aMarCruz
60+
v1.0.3 &ndash; Group: dev &ndash; Author: aMarCruz
6161

6262
### [hasOwnProperties](packages/has-own-properties/README.md)
6363

6464
Determines whether an object has own properties or symbols, including (optionally) the non-enumerable ones.
6565

66-
v1.1.0 &ndash; Group: object &ndash; Author: aMarCruz
66+
v1.1.1 &ndash; Group: object &ndash; Author: aMarCruz
6767

6868
<!--END_FUNCTION_LIST-->
6969

@@ -106,11 +106,11 @@ This UMD version, pointed by the "browser" field, works with AMD and CJS module
106106
107107
If you dont need AMD/CJS support, you can load the functions from the index.b.min.js file.
108108
109-
The following example allows loading @jsbits functions in jQuery:
109+
The following example loads `$.jsbits.addMonths` in the browser:
110110
111111
```html
112112
<script>$.jsbits = {};</script>
113-
<script src="add-months/index.b.min.js"></script>
113+
<script src="https://unpkg.com/@jsbits/add-months/index.b.min.js"></script>
114114
```
115115
116116
## TODO
@@ -126,37 +126,36 @@ In addition to increasing the number of functions...
126126
127127
I'm a full-stack developer with more than 20 year of experience and I try to share most of my work for free and help others, but this takes a significant amount of time and effort so, if you like my work, please consider...
128128
129-
<!-- markdownlint-disable MD033 -->
130-
[<img src="https://amarcruz.github.io/images/kofi_blue.png" height="36" title="Support Me on Ko-fi" />][kofi-url]<br>
131-
<!-- markdownlint-enable MD033 -->
129+
[<img src="https://amarcruz.github.io/images/kofi_blue.png" height="36" title="Support Me on Ko-fi" />][kofi-url]
132130
133131
Of course, feedback, PRs, and stars are also welcome 🙃
134132
135133
Thanks for your support!
136134
137135
### Thanks
138136
139-
Special thanks to [BrowserStack](https://www.browserstack.com) for their excellent service.
137+
Special thanks to [BrowserStack][11] for their excellent service.
138+
139+
[![BrowserStack logo](assets/Browserstack-logo.svg)][11]
140140
141141
## License
142142
143-
The [BSD 2-Clause](LICENSE) "Simplified" License.
143+
The [MIT](LICENSE) License.
144144
145-
&copy; 2018 Alberto Martínez. All rights reserved.
145+
&copy; 2018-2019 Alberto Martínez
146146
147147
<!-- Badges and Refs (badges for the branch 'master') -->
148-
[license-badge]: https://img.shields.io/badge/license-BSD--2--Clause-blue.svg
149-
[license-url]: https://github.com/ProJSLib/jsbits/blob/master/LICENSE
150-
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/yh5018ej9u6fnau8?svg=true
151-
[appveyor-url]: https://ci.appveyor.com/project/aMarCruz/jsbits
148+
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
149+
[appveyor-badge]: https://img.shields.io/appveyor/ci/aMarCruz/jsbits/master.svg?label=appveyor
150+
[appveyor-url]: https://ci.appveyor.com/project/aMarCruz/jsbits/branch/master
152151
[travis-badge]: https://img.shields.io/travis/ProJSLib/jsbits/master.svg?label=travis
153152
[travis-url]: https://travis-ci.org/ProJSLib/jsbits
154-
[codecov-badge]: https://img.shields.io/codecov/c/github/ProJSLib/jsbits.svg
155-
[codecov-url]: https://codecov.io/gh/ProJSLib/jsbits
156-
[climate-badge]: https://api.codeclimate.com/v1/badges/e991c05e8a92448d30f0/maintainability
157-
[climate-url]: https://codeclimate.com/github/ProJSLib/jsbits/maintainability
153+
[codecov-badge]: https://img.shields.io/codecov/c/github/ProJSLib/jsbits/master.svg
154+
[codecov-url]: https://codecov.io/gh/ProJSLib/jsbits/branch/master
158155
[codacy-badge]: https://img.shields.io/codacy/grade/b9374fca91d64b75aafac26682df8fd0/master.svg
159156
[codacy-url]: https://www.codacy.com/app/ProJSLib/jsbits?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ProJSLib/jsbits&amp;utm_campaign=Badge_Grade
157+
[climate-badge]: https://img.shields.io/codeclimate/maintainability/ProJSLib/jsbits.svg
158+
[climate-url]: https://codeclimate.com/github/ProJSLib/jsbits/maintainability
160159
[kofi-url]: https://ko-fi.com/C0C7LF7I
161160
[1]: https://github.com/defunctzombie/package-browser-field-spec
162161
[2]: https://github.com/rollup/rollup/wiki/pkg.module
@@ -168,3 +167,4 @@ The [BSD 2-Clause](LICENSE) "Simplified" License.
168167
[8]: webpack.js.org/
169168
[9]: typescriptlang.org/
170169
[10]: https://jquery.com/
170+
[11]: https://www.browserstack.com

assets/Browserstack-logo.svg

Lines changed: 90 additions & 0 deletions
Loading

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.1.3",
44
"description": "Public library of professional high quality functions for TypeScript and JavaScript.",
55
"author": "aMarCruz <amarcruzbox-git@yahoo.com>",
6-
"license": "BSD-2-Clause",
6+
"license": "MIT",
77
"homepage": "https://github.com/ProJSLib/jsbits",
88
"bugs": "https://github.com/ProJSLib/jsbits/issues",
99
"repository": {
@@ -36,7 +36,6 @@
3636
"build:esm": "node ./scripts/build-rest.js",
3737
"build": "yarn lint && yarn build:cjs && yarn build:pkg && yarn build:esm"
3838
},
39-
"dependencies": {},
4039
"devDependencies": {
4140
"@types/expect.js": "^0.3.29",
4241
"@types/fs-extra": "^5.0.4",

packages/add-months/.jsbits.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"_VERSION": "1.1.1",
3-
"_DESCRIPTION": "Adds or sustract X months to any JavaScript Date, local or UTC.",
2+
"_VERSION": "1.1.2",
3+
"_DESCRIPTION": "Adds or subtracts N months to any JavaScript Date, local or UTC.",
44
"_SINCE": "1.0.0",
55
"_GROUPS": [
66
"date"

0 commit comments

Comments
 (0)