Conversation
|
@jaredperreault-okta or anyone else on the Okta team, is this something you would consider applying? |
|
@jamesbuchan-okta or @oleksandrpravosudko-okta is anyone able to give a review? |
|
@tanish-okta @sagar-okta can we get someone to review this PR that's been out since Oct 2024? |
sagar-okta
left a comment
There was a problem hiding this comment.
LGTM, please rebase once with latest master as this is a old PR. There was a SDK refresh done in between. Just to make sure tests are running correctly.
|
@sagar-okta thanks for the review - the branch has been updated from master |
|
@sagar-okta is anything else needed here to get this merged? |
|
Approved, not sure why I cannot see the test runs but changes looks good. |
|
Great thanks @sagar-okta - I'm seeing "Merging is blocked" on my end due to "Commits must have verified signatures". Guessing that means that a maintainer needs to merge? |
|
Hi @prescottprue there is an error in the merge process "Commits must have verified signatures." Please make sure you did commit through a valid gpg keys because if not done you cannot merge it. |
|
Hi @prescottprue also please submit your cla since this would be an external contribution |
|
@sagar-okta how do I submit a CLA? I don't see anything about it in the contributing docs or the README. I'm making sure to have a GPG key set up - may have to create a new PR |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When using named imports in ESM you see the error saying that module.exports:
Though the default export mentioned in the message is technically possible, the need to do this isn't called out by tools like Typescript (more on this below)
Issue Number: N/A
What is the new behavior?
You can use named imports in ESM:
index.js
package.json
{ "type": "module", "dependencies": { "@okta/okta-sdk-nodejs": "7.1.1" } }Running:
Does this PR introduce a breaking change?
Other information
Node making named exports via static analysis is part of a known issue in Typescript (i.e. the naming being available in Typescript but not in Node): https://www.typescriptlang.org/docs/handbook/modules/reference.html#interoperability-rules
As called out in this typescript issue:
Reviewers