From dbcc917b64dee9129a79d5910add6c51e203d4e4 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju <88789928+saikumarrs@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:55:36 +0530 Subject: [PATCH] chore: update all licenses to latest (#1765) * chore: update all licenses to latest * chore: update all readme files to include license information * chore: address ai bot review comments * chore: address ai bot review comments * chore: callout exact license in package.json file * chore: use standard spdx license id --- LICENSE.md | 29 ++++++---- README.md | 8 ++- nx.json | 2 +- package-lock.json | 20 +++---- package.json | 2 +- packages/analytics-js-common/LICENSE | 21 ------- packages/analytics-js-common/LICENSE.md | 53 +++++++++++++++++ packages/analytics-js-common/README.md | 44 ++++++++++++++ packages/analytics-js-common/package.json | 4 +- packages/analytics-js-cookies/LICENSE | 21 ------- packages/analytics-js-cookies/LICENSE.md | 53 +++++++++++++++++ packages/analytics-js-cookies/README.md | 58 ++++++++++++++++--- packages/analytics-js-cookies/package.json | 4 +- packages/analytics-js-integrations/LICENSE | 21 ------- packages/analytics-js-integrations/LICENSE.md | 53 +++++++++++++++++ packages/analytics-js-integrations/README.md | 44 ++++++++++++++ .../analytics-js-integrations/package.json | 4 +- packages/analytics-js-plugins/LICENSE | 21 ------- packages/analytics-js-plugins/LICENSE.md | 53 +++++++++++++++++ packages/analytics-js-plugins/README.md | 44 ++++++++++++++ packages/analytics-js-plugins/package.json | 4 +- packages/analytics-js-service-worker/LICENSE | 21 ------- .../analytics-js-service-worker/LICENSE.md | 53 +++++++++++++++++ .../analytics-js-service-worker/README.md | 44 ++++++++++++++ .../analytics-js-service-worker/package.json | 4 +- packages/analytics-js/LICENSE | 21 ------- packages/analytics-js/LICENSE.md | 53 +++++++++++++++++ packages/analytics-js/README.md | 44 ++++++++++++++ packages/analytics-js/package.json | 4 +- packages/analytics-v1.1/LICENSE | 21 ------- packages/analytics-v1.1/LICENSE.md | 53 +++++++++++++++++ packages/analytics-v1.1/README.md | 45 +++++++++++++- packages/analytics-v1.1/package.json | 4 +- packages/loading-scripts/LICENSE | 21 ------- packages/loading-scripts/LICENSE.md | 53 +++++++++++++++++ packages/loading-scripts/README.md | 44 ++++++++++++++ packages/loading-scripts/package.json | 2 +- packages/sanity-suite/LICENSE | 21 ------- packages/sanity-suite/LICENSE.md | 53 +++++++++++++++++ packages/sanity-suite/README.md | 45 +++++++++++++- packages/sanity-suite/package.json | 2 +- 41 files changed, 929 insertions(+), 242 deletions(-) delete mode 100644 packages/analytics-js-common/LICENSE create mode 100644 packages/analytics-js-common/LICENSE.md delete mode 100644 packages/analytics-js-cookies/LICENSE create mode 100644 packages/analytics-js-cookies/LICENSE.md delete mode 100644 packages/analytics-js-integrations/LICENSE create mode 100644 packages/analytics-js-integrations/LICENSE.md delete mode 100644 packages/analytics-js-plugins/LICENSE create mode 100644 packages/analytics-js-plugins/LICENSE.md delete mode 100644 packages/analytics-js-service-worker/LICENSE create mode 100644 packages/analytics-js-service-worker/LICENSE.md delete mode 100644 packages/analytics-js/LICENSE create mode 100644 packages/analytics-js/LICENSE.md delete mode 100644 packages/analytics-v1.1/LICENSE create mode 100644 packages/analytics-v1.1/LICENSE.md delete mode 100644 packages/loading-scripts/LICENSE create mode 100644 packages/loading-scripts/LICENSE.md delete mode 100644 packages/sanity-suite/LICENSE create mode 100644 packages/sanity-suite/LICENSE.md diff --git a/LICENSE.md b/LICENSE.md index 571e997226..554bb72539 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,36 +1,45 @@ -### Elastic License 2.0 (ELv2) ### +### Elastic License 2.0 (ELv2) + +## Acceptance -## Acceptance ## By using the software, you agree to all of the terms and conditions below. -## Copyright License ## +## Copyright License + The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below -## Limitations ## +## Limitations + You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. -## Patents ## +## Patents + The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. -## Notices ## +## Notices + You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. -## No Other Rights ## +## No Other Rights + These terms do not imply any licenses other than those expressly granted in these terms. -## Termination ## +## Termination + If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. -## No Liability ## +## No Liability + As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. -## Definitions ## +## Definitions + The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. *you* refers to the individual or entity agreeing to these terms. diff --git a/README.md b/README.md index 8b18ad56ff..e1ec6b701d 100644 --- a/README.md +++ b/README.md @@ -287,9 +287,15 @@ For more details, see: - [Vercel Edge Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) - [Cloudflare Worker Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + ## Contribute -We would love to see you contribute to this project. Get more information on how to contribute [**here**](./CONTRIBUTING.md). +We encourage contributions to this project. For detailed guidelines on how to contribute, please refer to [**here**](./CONTRIBUTING.md). ## Contact us diff --git a/nx.json b/nx.json index f8278239fd..03db3b1e6a 100644 --- a/nx.json +++ b/nx.json @@ -119,7 +119,7 @@ "{projectRoot}/**/*", "!{projectRoot}/.env.example", "!{projectRoot}/public/**/*", - "!{projectRoot}/LICENSE", + "!{projectRoot}/LICENSE.md", "!{projectRoot}/**/*.md", "!{projectRoot}/**/*.txt", "!{projectRoot}/serve.json", diff --git a/package-lock.json b/package-lock.json index 8ea2d284b8..77e13acad9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "@rudderstack/analytics-js-monorepo", "version": "3.15.0", "hasInstallScript": true, - "license": "MIT", + "license": "Elastic-2.0", "workspaces": [ "packages/*" ], @@ -24951,7 +24951,7 @@ "packages/analytics-js": { "name": "@rudderstack/analytics-js", "version": "3.5.1", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@preact/signals-core": "1.6.1", "@rudderstack/analytics-js-common": "*", @@ -24965,7 +24965,7 @@ "packages/analytics-js-common": { "name": "@rudderstack/analytics-js-common", "version": "3.5.0", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", "@ndhoule/defaults": "2.0.1", @@ -24982,7 +24982,7 @@ "packages/analytics-js-cookies": { "name": "@rudderstack/analytics-js-cookies", "version": "0.2.0", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*" }, @@ -24991,7 +24991,7 @@ "packages/analytics-js-integrations": { "name": "@rudderstack/analytics-js-integrations", "version": "3.4.0", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", "@ndhoule/each": "2.0.1", @@ -25011,7 +25011,7 @@ "packages/analytics-js-plugins": { "name": "@rudderstack/analytics-js-plugins", "version": "3.2.1", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*", "crypto-es": "2.1.0", @@ -25024,7 +25024,7 @@ "packages/analytics-js-service-worker": { "name": "@rudderstack/analytics-js-service-worker", "version": "3.1.2", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", "@rudderstack/analytics-js-common": "*", @@ -25057,7 +25057,7 @@ "packages/analytics-v1.1": { "name": "rudder-sdk-js", "version": "2.48.10", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*" }, @@ -25066,7 +25066,7 @@ "packages/loading-scripts": { "name": "@rudderstack/analytics-js-loading-scripts", "version": "3.0.13", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*" }, @@ -25075,7 +25075,7 @@ "packages/sanity-suite": { "name": "@rudderstack/analytics-js-sanity-suite", "version": "3.1.3", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*", "deep-object-diff": "1.1.9", diff --git a/package.json b/package.json index 403110aabc..97793f6b94 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "deploy:npm": "nx affected --target=deploy --parallel=1 --skipCommitTypes=docs,ci,chore,test" }, "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "bugs": { "url": "https://github.com/rudderlabs/rudder-sdk-js/issues" }, diff --git a/packages/analytics-js-common/LICENSE b/packages/analytics-js-common/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js-common/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js-common/LICENSE.md b/packages/analytics-js-common/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js-common/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js-common/README.md b/packages/analytics-js-common/README.md index 221c6d8777..2ab98d727f 100644 --- a/packages/analytics-js-common/README.md +++ b/packages/analytics-js-common/README.md @@ -24,3 +24,47 @@ RudderStack JavaScript SDK common code that is used within the related analytics, plugins, integrations and service worker packages. > For detailed documentation on the RudderStack JavaScript SDK, click [**here**](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/). + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js-common/package.json b/packages/analytics-js-common/package.json index 9bfbb5e0f3..f7c7fe025b 100644 --- a/packages/analytics-js-common/package.json +++ b/packages/analytics-js-common/package.json @@ -8,7 +8,7 @@ "publishConfig": {}, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -17,7 +17,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-js-cookies/LICENSE b/packages/analytics-js-cookies/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js-cookies/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js-cookies/LICENSE.md b/packages/analytics-js-cookies/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js-cookies/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js-cookies/README.md b/packages/analytics-js-cookies/README.md index 8b02902ee5..4b3ed8725a 100644 --- a/packages/analytics-js-cookies/README.md +++ b/packages/analytics-js-cookies/README.md @@ -21,7 +21,7 @@ # @rudderstack/analytics-js-cookies -RudderStack JavaScript SDK utility for cookies. +[RudderStack JavaScript SDK](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/) utilities for cookies. ## APIs @@ -29,22 +29,22 @@ RudderStack JavaScript SDK utility for cookies. This function decrypts the provided encrypted RudderStack JavaScript cookie value using the RudderStack JavaScript SDK encryption version "v3". -> The encrypted value should be a string starting with `RS_ENC_v3_`. +> If the provided value is either not encrypted or not properly encrypted, the function returns `null`. -> If the provided value is not properly encrypted, the function will throw an exception. +> Any errors during decryption are swallowed by the function, returning `null`. ```javascript -import { decrypt } from '@rudderstack/analytics-js-cookies'; +import { getDecryptedValue } from '@rudderstack/analytics-js-cookies'; const encryptedCookieValue = 'RS_ENC_v3_InRlc3QtZGF0YSI='; -const decryptedCookieValue = decrypt(encryptedCookieValue); +const decryptedCookieValue = getDecryptedValue(encryptedCookieValue); console.log('Decrypted Cookie Value: ', decryptedCookieValue); // Output: Decrypted Cookie Value: test-data ``` ### `getDecryptedCookie` -This function decrypts and returns the RudderStack JavaScript SDK cookie values. +This function takes the name of the RudderStack JavaScript SDK cookie and returns the decrypted value. The return type is either a `string` or an `object` as some cookies like user ID, anonymous user ID have string values while user traits are objects. @@ -58,7 +58,7 @@ It returns `null` in either of the following scenarios: > Any errors during decryption are swallowed by the function, returning `null`. -The following are the available cookie key exports: +The following are the exported cookie keys that can be used with this function: - `userIdKey`: The key for the user ID cookie. - `userTraitsKey`: The key for the user traits cookie. @@ -90,4 +90,46 @@ console.log('Invalid Cookie: ', invalidCookie); // Output: Invalid Cookie: null ``` -> For detailed documentation on the RudderStack JavaScript SDK, click [**here**](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/). +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js-cookies/package.json b/packages/analytics-js-cookies/package.json index 996e461a7b..303379b445 100644 --- a/packages/analytics-js-cookies/package.json +++ b/packages/analytics-js-cookies/package.json @@ -29,7 +29,7 @@ }, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -38,7 +38,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-js-integrations/LICENSE b/packages/analytics-js-integrations/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js-integrations/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js-integrations/LICENSE.md b/packages/analytics-js-integrations/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js-integrations/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js-integrations/README.md b/packages/analytics-js-integrations/README.md index 5dda9d48ff..b45a3c247e 100644 --- a/packages/analytics-js-integrations/README.md +++ b/packages/analytics-js-integrations/README.md @@ -33,3 +33,47 @@ Look for run scripts in the `package.json` file for getting the browser minified updated in the `dist` folder of the directory. Among the others, some of the important ones are: - `npm run build:browser`: This outputs **dist/cdn/legacy** folder that contains the cdn package contents. + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js-integrations/package.json b/packages/analytics-js-integrations/package.json index c600c82208..9ba3467a2c 100644 --- a/packages/analytics-js-integrations/package.json +++ b/packages/analytics-js-integrations/package.json @@ -28,7 +28,7 @@ "publishConfig": {}, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -37,7 +37,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-js-plugins/LICENSE b/packages/analytics-js-plugins/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js-plugins/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js-plugins/LICENSE.md b/packages/analytics-js-plugins/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js-plugins/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js-plugins/README.md b/packages/analytics-js-plugins/README.md index 563ba10d1a..2683135e82 100644 --- a/packages/analytics-js-plugins/README.md +++ b/packages/analytics-js-plugins/README.md @@ -40,3 +40,47 @@ Plugins are JavaScript SDK v3 features that you can optionally load on demand. A - `npm run build:browser:modern`: This outputs the **dist/cdn** folder that contains the CDN package contents. - `npm run build:npm`: This outputs the **dist/npm** folder that contains the NPM package contents. + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js-plugins/package.json b/packages/analytics-js-plugins/package.json index 08b01b6bd2..a6db84059b 100644 --- a/packages/analytics-js-plugins/package.json +++ b/packages/analytics-js-plugins/package.json @@ -28,7 +28,7 @@ "publishConfig": {}, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -37,7 +37,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-js-service-worker/LICENSE b/packages/analytics-js-service-worker/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js-service-worker/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js-service-worker/LICENSE.md b/packages/analytics-js-service-worker/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js-service-worker/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js-service-worker/README.md b/packages/analytics-js-service-worker/README.md index e06871d63b..7402792424 100644 --- a/packages/analytics-js-service-worker/README.md +++ b/packages/analytics-js-service-worker/README.md @@ -70,3 +70,47 @@ For more details, see: - Look for run scripts in the `package.json` file for getting the browser minified and non-minified builds. The builds are updated in the `dist` folder of the directory. Among the others, some of the important ones are: - `npm run build:package`: This command outputs the **dist/npm** folder that contains the NPM package contents. + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js-service-worker/package.json b/packages/analytics-js-service-worker/package.json index d2eb8c0483..1cefc11dae 100644 --- a/packages/analytics-js-service-worker/package.json +++ b/packages/analytics-js-service-worker/package.json @@ -22,7 +22,7 @@ }, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -31,7 +31,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-js/LICENSE b/packages/analytics-js/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-js/LICENSE.md b/packages/analytics-js/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-js/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-js/README.md b/packages/analytics-js/README.md index 79d2ecfd12..da687336bd 100644 --- a/packages/analytics-js/README.md +++ b/packages/analytics-js/README.md @@ -92,3 +92,47 @@ For more details, see: - [Vercel Edge Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) - [Cloudflare Worker Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-js/package.json b/packages/analytics-js/package.json index 403ede0929..40bc0edf78 100644 --- a/packages/analytics-js/package.json +++ b/packages/analytics-js/package.json @@ -39,7 +39,7 @@ }, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -48,7 +48,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/analytics-v1.1/LICENSE b/packages/analytics-v1.1/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/analytics-v1.1/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/analytics-v1.1/LICENSE.md b/packages/analytics-v1.1/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/analytics-v1.1/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/analytics-v1.1/README.md b/packages/analytics-v1.1/README.md index 4e48333531..1cbfee8c21 100644 --- a/packages/analytics-v1.1/README.md +++ b/packages/analytics-v1.1/README.md @@ -19,6 +19,9 @@ --- +| :warning: This package is deprecated. Please switch to the latest [@rudderstack/analytics-js](https://www.npmjs.com/package/@rudderstack/analytics-js) package for improved features and support.
For more details, visit [link](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/). | +| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | + # RudderStack JavaScript SDK The JavaScript SDK lets you track customer event data from your website and send it to your specified destinations via RudderStack. @@ -36,8 +39,8 @@ The JavaScript SDK lets you track customer event data from your website and send - [**Usage in Chrome Extensions**](#usage-in-chrome-extensions) - [**Usage in Serverless Runtimes**](#usage-in-serverless-runtimes) -| **IMPORTANT**: We have deprecated the service worker export from RudderStack JavaScript SDK npm package and decoupled it to a new package.
If you still wish to use it for your project, refer to [**@rudderstack/analytics-js-service-worker package**](https://www.npmjs.com/package/@rudderstack/analytics-js-service-worker). | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **IMPORTANT**: We have deprecated the service worker export from RudderStack JavaScript SDK NPM package and moved it to a separate package.
If you still wish to use it for your project, refer to [**@rudderstack/analytics-js-service-worker package**](https://www.npmjs.com/package/@rudderstack/analytics-js-service-worker). | +| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ## [](https://github.com/rudderlabs/rudder-sdk-js/blob/main/packages/analytics-v1.1/README.md#installing-the-javascript-sdk)Installing the JavaScript SDK @@ -312,10 +315,46 @@ For examples and specific details look into: - [Vercel Edge Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) - [Cloudflare Worker Usage](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples/serverless/USAGE.md) +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + ## Contribute -We would love to see you contribute to this project. Get more information on how to contribute [**here**](./CONTRIBUTING.md). +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). ## Contact us For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/analytics-v1.1/package.json b/packages/analytics-v1.1/package.json index cd955537e7..955bb1a260 100644 --- a/packages/analytics-v1.1/package.json +++ b/packages/analytics-v1.1/package.json @@ -28,7 +28,7 @@ }, "files": [ "dist/npm", - "LICENSE", + "LICENSE.md", "README.md", "CHANGELOG.md" ], @@ -66,7 +66,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "bugs": { "url": "https://github.com/rudderlabs/rudder-sdk-js/issues" }, diff --git a/packages/loading-scripts/LICENSE b/packages/loading-scripts/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/loading-scripts/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/loading-scripts/LICENSE.md b/packages/loading-scripts/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/loading-scripts/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/loading-scripts/README.md b/packages/loading-scripts/README.md index 1e7610d6f1..13f4f63255 100644 --- a/packages/loading-scripts/README.md +++ b/packages/loading-scripts/README.md @@ -24,3 +24,47 @@ RudderStack JavaScript SDK loading script snippet code. > For detailed documentation on the RudderStack JavaScript SDK, click [**here**](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/). + +## License + +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/loading-scripts/package.json b/packages/loading-scripts/package.json index de66503dc5..6edfb2f867 100644 --- a/packages/loading-scripts/package.json +++ b/packages/loading-scripts/package.json @@ -9,7 +9,7 @@ "rudder" ], "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "repository": { "type": "git", "url": "git+https://github.com/rudderlabs/rudder-sdk-js.git", diff --git a/packages/sanity-suite/LICENSE b/packages/sanity-suite/LICENSE deleted file mode 100644 index 2abc92cbcb..0000000000 --- a/packages/sanity-suite/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 RudderStack - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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 OR COPYRIGHT HOLDERS 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. diff --git a/packages/sanity-suite/LICENSE.md b/packages/sanity-suite/LICENSE.md new file mode 100644 index 0000000000..554bb72539 --- /dev/null +++ b/packages/sanity-suite/LICENSE.md @@ -0,0 +1,53 @@ +### Elastic License 2.0 (ELv2) + +## Acceptance + +By using the software, you agree to all of the terms and conditions below. + +## Copyright License + +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below + +## Limitations + +You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. + +You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. + +You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law. + +## Patents + +The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. + +## Notices + +You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. + +If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. + +## No Other Rights + +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination + +If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Liability + +As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. + +## Definitions + +The *licensor* is the entity offering these terms, and the *software* is the software the licensor makes available under these terms, including any portion of it. + +*you* refers to the individual or entity agreeing to these terms. + +*your company* is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. *control* means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +*your licenses* are all the licenses granted to you for the software under these terms. + +*use* means anything you do with the software requiring one of your licenses. + +*trademark* means trademarks, service marks, and similar rights. diff --git a/packages/sanity-suite/README.md b/packages/sanity-suite/README.md index c8af1c64a4..8d7173c151 100644 --- a/packages/sanity-suite/README.md +++ b/packages/sanity-suite/README.md @@ -34,7 +34,46 @@ RudderStack JavaScript SDK sanity suite for manual and automated testing via our - [CDN](https://cdn.rudderlabs.com/sanity-suite/v3/cdn/index.html) - [NPM](https://cdn.rudderlabs.com/sanity-suite/v3/npm/index.html) -### Legacy SDK +## License -- [CDN](https://cdn.rudderlabs.com/sanity-suite/v1.1/cdn/index.html) -- [NPM](https://cdn.rudderlabs.com/sanity-suite/v1.1/npm/index.html) +This project is licensed under the Elastic License 2.0. See the [LICENSE.md](LICENSE.md) file for details. Review the license terms to understand your permissions and restrictions. + +If you have any questions about licensing, please [contact us](#contact-us) or refer to the [official Elastic licensing](https://www.elastic.co/licensing/elastic-license) page. + +## Contribute + +We invite you to contribute to this project. For more information on how to contribute, please see [**here**](../../CONTRIBUTING.md). + +## Contact us + +For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel. + +## Follow Us + +- [RudderStack Blog][rudderstack-blog] +- [Slack][slack] +- [Twitter][twitter] +- [LinkedIn][linkedin] +- [dev.to][devto] +- [Medium][medium] +- [YouTube][youtube] +- [HackerNews][hackernews] +- [Product Hunt][producthunt] + +## :clap: Our Supporters + +[![Stargazers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/stars/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/stargazers) + +[![Forkers repo roster for @rudderlabs/rudder-sdk-js](https://reporoster.com/forks/rudderlabs/rudder-sdk-js)](https://github.com/rudderlabs/rudder-sdk-js/network/members) + + + +[rudderstack-blog]: https://rudderstack.com/blog/ +[slack]: https://resources.rudderstack.com/join-rudderstack-slack +[twitter]: https://twitter.com/rudderstack +[linkedin]: https://www.linkedin.com/company/rudderlabs/ +[devto]: https://dev.to/rudderstack +[medium]: https://rudderstack.medium.com/ +[youtube]: https://www.youtube.com/channel/UCgV-B77bV_-LOmKYHw8jvBw +[hackernews]: https://news.ycombinator.com/item?id=21081756 +[producthunt]: https://www.producthunt.com/posts/rudderstack diff --git a/packages/sanity-suite/package.json b/packages/sanity-suite/package.json index c6b0dc577a..2db3ca15b8 100644 --- a/packages/sanity-suite/package.json +++ b/packages/sanity-suite/package.json @@ -51,7 +51,7 @@ "build:all": "npm run build:cdn:v1.1 && npm run build:cdn:v3 && npm run build:npm:v1.1 && npm run build:npm:v3 && rimraf -rf ./dist/dts" }, "author": "RudderStack", - "license": "MIT", + "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*", "rudder-sdk-js": "*",