Skip to content

Commit

Permalink
Merge pull request #24 from rpearce/types-deps-license
Browse files Browse the repository at this point in the history
chore/fix: Export types, make public domain, rm superfluous tslib dep
  • Loading branch information
rpearce authored Jun 30, 2024
2 parents b8a0128 + 5cab8eb commit 1c1ef6a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Use nodejs
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '20'
cache: 'npm'

- name: Install deps without updating package-lock.json
Expand Down
46 changes: 20 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
Copyright (c) 2019, Robert Pearce
This is free and unencumbered software released into the public domain.

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

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

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

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Robert Pearce nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
For more information, please refer to <https://unlicense.org>
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"exports": {
".": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"type": "module",
"repository": {
"type": "git",
Expand All @@ -17,7 +18,7 @@
"contributors": [
"Robert Pearce <[email protected]> (https://robertwpearce.com)"
],
"license": "BSD-3",
"license": "Unlicense",
"keywords": [
"forwardRef",
"react",
Expand Down Expand Up @@ -77,8 +78,5 @@
},
"peerDependencies": {
"react": "^16.3.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"tslib": "^2.4.0"
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
"importHelpers": true,
"jsx": "react",
"lib": ["esnext", "dom"],
"module": "esnext",
Expand Down

0 comments on commit 1c1ef6a

Please sign in to comment.