Skip to content
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

Release 3.2.0 #107

Merged
merged 1 commit into from
Aug 30, 2022
Merged

Release 3.2.0 #107

merged 1 commit into from
Aug 30, 2022

Conversation

TysonAndre
Copy link
Contributor

@TysonAndre TysonAndre commented Aug 30, 2022

Start setting up (failing) eslint rules

Fix some occurrences of unused variables and harmless uses of
hasOwnProperty (in hardcoded schema)

Set up github workflows

Drop use of bluebird because Node.js has efficient native Promises.

Update CHANGELOG.md

Hold back jsen dependency. See #86

lib/Route.js Outdated
@@ -31,7 +31,7 @@ Route.createRoute = function (patternConfig, schema, handlers, openApiDocs) {
// Validate the schema
var isSchemaValid = validateSchema(schema);
if (!isSchemaValid) {
throw new Error("Invalid schema");
throw new Error("Invalid schema" + JSON.stringify(schema)); // TODO revert

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to help debugging for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted, I was looking into the failure from updating the jsen patch version

=====

+ Drop support for Node.js < 12.
+ Hold back jsen dependency. See https://github.com/ifwe/monocle-api/issues/86

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why go to 4.0.0 now, if we're holding off on the breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, any applications that had failures due to using older Node.js versions should be pretty obvious, so a major version bump shouldn't be needed for that. The package.json "engines" change added after this also makes this obvious

@TysonAndre TysonAndre force-pushed the release-4.0.0 branch 4 times, most recently from 1fd0d91 to b3768af Compare August 30, 2022 17:25
@TysonAndre TysonAndre changed the title Release 4.0.0 Release 3.2.0 Aug 30, 2022
Start setting up (failing) eslint rules

Fix some occurrences of unused variables and harmless uses of
hasOwnProperty (in hardcoded schema)

Set up github workflows

Drop use of bluebird because Node.js has efficient native Promises.

Update CHANGELOG.md
@TysonAndre
Copy link
Contributor Author

No release of jsen fixes the audit warning, if I remember correctly, the maintainers of jsen maintain that only trusted schemas should be used for schema validation, which is true for uses of monocle-api as well.

I haven't looked into the impact of switching to ajv but smaller changes would be easier to validate

@erikjohannessen
Copy link

lgtm

@TysonAndre TysonAndre merged commit 4f5bd4c into master Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants