Skip to content

Conversation

matt-condon
Copy link
Collaborator

@matt-condon matt-condon commented Oct 2, 2025

Proposed changes

parquet-wasm 0.7.0 has package.json with "type": "module" which makes Node.js treat .js files as ES modules. However, the node build uses CommonJS syntax.

Solution: Since this file has a .cjs extension, Node.js always treats it as CommonJS, allowing us to use require(). We then use createRequire() in our ES module to load this wrapper.

See: kylebarron/parquet-wasm#798

Alternative option:

Pin the previous version of the package until the issue is closed

Jira ticket: CLOUDP-349076

Closes #975

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

Further comments

@matt-condon matt-condon marked this pull request as ready for review October 3, 2025 08:41
@matt-condon matt-condon requested a review from a team as a code owner October 3, 2025 08:41
```

This command will run Spectral CLI for the ruleset [ipa-spectral.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/ipa-spectral.yaml) on the raw [v2.yaml](https://github.com/mongodb/openapi/blob/main/openapi/.raw/v2.yaml) OpenAPI spec.
This command will run Spectral CLI for the ruleset [ipa-spectral.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/ipa-spectral.yaml) on the raw [v2.yaml](https://github.com/mongodb/openapi/blob/main/openapi/.raw/v2.yaml) OpenAPI spec and generate .
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
This command will run Spectral CLI for the ruleset [ipa-spectral.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/ipa-spectral.yaml) on the raw [v2.yaml](https://github.com/mongodb/openapi/blob/main/openapi/.raw/v2.yaml) OpenAPI spec and generate .
This command will run Spectral CLI for the ruleset [ipa-spectral.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/ipa-spectral.yaml) on the raw [v2.yaml](https://github.com/mongodb/openapi/blob/main/openapi/.raw/v2.yaml) OpenAPI spec and generate `ipa-collector-results-combined.log` .

Copy link
Collaborator

@lovisaberggren lovisaberggren left a comment

Choose a reason for hiding this comment

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

LGTM

@matt-condon matt-condon merged commit 04a85c8 into main Oct 3, 2025
17 checks passed
@matt-condon matt-condon deleted the CLOUDP-349076 branch October 3, 2025 09:24
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.

(dev) The IPA Metrics Release has failed. 🙀

2 participants