-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/express version #197
base: main
Are you sure you want to change the base?
Fix/express version #197
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -59,7 +59,7 @@ Kinde’s SDK is available through [Maven](https://search.maven.org/). To insta | |||||
<dependency> | ||||||
<groupId>com.kinde</groupId> | ||||||
<artifactId>java-sdk</artifactId> | ||||||
<version>2.0.0</version> | ||||||
<version>[2.0.1,)</version> | ||||||
</dependency> | ||||||
``` | ||||||
|
||||||
|
@@ -74,7 +74,7 @@ repositories { | |||||
} | ||||||
|
||||||
dependencies { | ||||||
implementation "com.kinde:java-sdk:2.0.0” | ||||||
implementation "com.kinde:java-sdk:+” | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using the latest version syntax ( Using Consider using a specific version or a range with an upper bound: - implementation "com.kinde:java-sdk:+"
+ implementation "com.kinde:java-sdk:2.0.1" Or if you want to allow patch updates: - implementation "com.kinde:java-sdk:+"
+ implementation "com.kinde:java-sdk:2.0.+" 📝 Committable suggestion
Suggested change
|
||||||
} | ||||||
``` | ||||||
|
||||||
|
@@ -533,7 +533,7 @@ In order to use this SDK include following POM dependency. | |||||
<dependency> | ||||||
<groupId>com.kinde</groupId> | ||||||
<artifactId>kinde-j2ee</artifactId> | ||||||
<version>2.0.0</version> | ||||||
<version>[2.0.1,)</version> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider using a more restrictive version range for kinde-j2ee Similar to the previous Maven dependency, the version range - <version>[2.0.1,)</version>
+ <version>[2.0.1,3.0.0)</version> 📝 Committable suggestion
Suggested change
|
||||||
</dependency> | ||||||
``` | ||||||
|
||||||
|
@@ -542,7 +542,7 @@ In order to use this SDK include following POM dependency. | |||||
In order to use the SDK with a Gradle build process please use the following dependency. | ||||||
|
||||||
```groovy | ||||||
configuration('com.kinde:kinde-j2ee:2.0.0') | ||||||
configuration('com.kinde:kinde-j2ee:+') | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using the latest version syntax ( As with the previous Gradle dependency, using Consider using a specific version or a range with an upper bound: - configuration('com.kinde:kinde-j2ee:+')
+ configuration('com.kinde:kinde-j2ee:2.0.1') Or if you want to allow patch updates: - configuration('com.kinde:kinde-j2ee:+')
+ configuration('com.kinde:kinde-j2ee:2.0.+') 📝 Committable suggestion
Suggested change
|
||||||
``` | ||||||
|
||||||
### Project configuration | ||||||
|
@@ -638,15 +638,15 @@ To use configure Spring Boot to use Kinde for authentication, include the follow | |||||
<dependency> | ||||||
<groupId>com.kinde.spring</groupId> | ||||||
<artifactId>kinde-springboot-starter</artifactId> | ||||||
<version>2.0.0</version> | ||||||
<version>[2.0.1,)</version> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider using a more restrictive version range for kinde-springboot-starter Consistent with the previous Maven dependencies, the version range - <version>[2.0.1,)</version>
+ <version>[2.0.1,3.0.0)</version> 📝 Committable suggestion
Suggested change
|
||||||
</dependency> | ||||||
``` | ||||||
#### Gradle | ||||||
|
||||||
To use the SDK with a Gradle build process, use the following dependency. | ||||||
|
||||||
```groovy | ||||||
configuration('com.kinde.spring:kinde-springboot-starter:2.0.0') | ||||||
configuration('com.kinde.spring:kinde-springboot-starter:+') | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using the latest version syntax ( Consistent with the previous Gradle dependencies, using Consider using a specific version or a range with an upper bound: - configuration('com.kinde.spring:kinde-springboot-starter:+')
+ configuration('com.kinde.spring:kinde-springboot-starter:2.0.1') Or if you want to allow patch updates: - configuration('com.kinde.spring:kinde-springboot-starter:+')
+ configuration('com.kinde.spring:kinde-springboot-starter:2.0.+') 📝 Committable suggestion
Suggested change
|
||||||
``` | ||||||
|
||||||
### Usage | ||||||
|
@@ -704,7 +704,7 @@ To use this SDK, include the following dependency in your `pom.xml`: | |||||
<dependency> | ||||||
<groupId>com.kinde</groupId> | ||||||
<artifactId>kinde-management</artifactId> | ||||||
<version>2.0.0</version> | ||||||
<version>[2.0.1,).0</version> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix version range syntax and consider using a more restrictive range There's a typo in the version range syntax. The - <version>[2.0.1,).0</version>
+ <version>[2.0.1,3.0.0)</version> This change removes the typo and restricts the range to versions 2.0.1 up to, but not including, 3.0.0. 📝 Committable suggestion
Suggested change
|
||||||
</dependency> | ||||||
``` | ||||||
|
||||||
|
@@ -713,7 +713,7 @@ To use this SDK, include the following dependency in your `pom.xml`: | |||||
For Gradle, add the following dependency to your build file: | ||||||
|
||||||
```groovy | ||||||
implementation('com.kinde:kinde-management:2.0.0') | ||||||
implementation('com.kinde:kinde-management:+') | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using the latest version syntax ( Consistent with the previous Gradle dependencies, using Consider using a specific version or a range with an upper bound: -implementation('com.kinde:kinde-management:+')
+implementation('com.kinde:kinde-management:2.0.1') Or if you want to allow patch updates: -implementation('com.kinde:kinde-management:+')
+implementation('com.kinde:kinde-management:2.0.+') 📝 Committable suggestion
Suggested change
|
||||||
``` | ||||||
|
||||||
### Building the SDK from Source | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ You can view the [NodeJS docs](https://github.com/kinde-oss/kinde-nodejs-sdk) a | |
|
||
## Requirements | ||
|
||
- Node version 18.x.x or newer. | ||
- Node version 18.x.x or newer. If used in conjunction with the ExpressJS sdk [Express SDK](https://github.com/kinde-oss/kinde-node-express), then Node 20.x.x or new is required. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @brettchaldecott - shouldnt there be changes to the Express SDK doc, not the NodeJS SDK doc? |
||
- If you haven’t got a Kinde account, [register for free here](https://app.kinde.com/register) (no credit card required). Registering gives you a Kinde domain, which you need to get started, e.g. `yourapp.kinde.com`. | ||
|
||
## Install | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider using a more restrictive version range
The current version range
[2.0.1,)
allows for any version from 2.0.1 onwards, including potential major version updates. This could lead to unexpected breaking changes in the future. Consider using a more restrictive range to ensure compatibility, such as[2.0.1,3.0.0)
which would allow all 2.x versions but exclude 3.0.0 and above.📝 Committable suggestion