Skip to content

Commit 1c1ef6a

Browse files
authored
Merge pull request #24 from rpearce/types-deps-license
chore/fix: Export types, make public domain, rm superfluous tslib dep
2 parents b8a0128 + 5cab8eb commit 1c1ef6a

File tree

5 files changed

+23
-45
lines changed

5 files changed

+23
-45
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Use nodejs
1414
uses: actions/setup-node@v2
1515
with:
16-
node-version: '16'
16+
node-version: '20'
1717
cache: 'npm'
1818

1919
- name: Install deps without updating package-lock.json

LICENSE

+20-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
Copyright (c) 2019, Robert Pearce
1+
This is free and unencumbered software released into the public domain.
22

3-
All rights reserved.
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
47

5-
Redistribution and use in source and binary forms, with or without
6-
modification, are permitted provided that the following conditions are met:
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
715

8-
* Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
1023

11-
* Redistributions in binary form must reproduce the above
12-
copyright notice, this list of conditions and the following
13-
disclaimer in the documentation and/or other materials provided
14-
with the distribution.
15-
16-
* Neither the name of Robert Pearce nor the names of other
17-
contributors may be used to endorse or promote products derived
18-
from this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
For more information, please refer to <https://unlicense.org>

package-lock.json

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

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"exports": {
77
".": "./dist/index.js"
88
},
9+
"types": "./dist/index.d.ts",
910
"type": "module",
1011
"repository": {
1112
"type": "git",
@@ -17,7 +18,7 @@
1718
"contributors": [
1819
"Robert Pearce <me@robertwpearce.com> (https://robertwpearce.com)"
1920
],
20-
"license": "BSD-3",
21+
"license": "Unlicense",
2122
"keywords": [
2223
"forwardRef",
2324
"react",
@@ -77,8 +78,5 @@
7778
},
7879
"peerDependencies": {
7980
"react": "^16.3.0 || ^17.0.0 || ^18.0.0"
80-
},
81-
"dependencies": {
82-
"tslib": "^2.4.0"
8381
}
8482
}

tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"allowSyntheticDefaultImports": true,
55
"declaration": true,
66
"esModuleInterop": true,
7-
"importHelpers": true,
87
"jsx": "react",
98
"lib": ["esnext", "dom"],
109
"module": "esnext",

0 commit comments

Comments
 (0)