-
Notifications
You must be signed in to change notification settings - Fork 25
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
Dependency updates #128
Dependency updates #128
Conversation
with: | ||
node-version: '18.18.2' | ||
|
||
- uses: actions/cache@v2 |
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.
actions/setup-node@v4
has this included
registry-url: 'https://registry.npmjs.org' | ||
|
||
- uses: actions/cache@v2 |
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.
actions/setup-node@v4
has this included
registry-url: 'https://registry.npmjs.org' | ||
|
||
- uses: actions/cache@v2 |
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.
actions/setup-node@v4
has this included
@@ -0,0 +1,4 @@ | |||
{ | |||
"$schema": "https://json.schemastore.org/mocharc.json", | |||
"require": "tsx" |
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.
Switching to tsx only requires this!
@@ -1,5 +1,5 @@ | |||
// | |||
// Autogenerated by Thrift Compiler (0.16.0) | |||
// Autogenerated by Thrift Compiler (0.18.1) |
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.
I did regen these files with v0.18.1, but nothing was different except this header.
// BSON uses top level awaits, so use require for now | ||
const bsonSerialize = require('bson').serialize; | ||
const bsonDeserialize = require('bson').deserialize; |
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.
Really annoying and only impacts esbuild for the browser, but not too bad.
Why the double require? It was clearer than the named version and keeps the linter away from trying to reformat it.
test/mocks/handlers.js
Outdated
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.
These were updates for the new version of msw
. No big changes however
@@ -12,15 +12,11 @@ | |||
"sourceMap": false, | |||
"strict": true, | |||
"target": "ESNext", | |||
"watch": false, |
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.
This never did anything.
"ts-node": { | ||
"files": true | ||
} |
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.
No more ts-node
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.
I got this error on cd examples && npm i && node app.js
:
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module '/Users/shannonwells/github/parquetjs/examples/app.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
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.
I checked out the branch and ran it and tested the example "app".
I reviewed the code.
I was disappointed that the simple 'rest' interface, which I guess is gone/deprecated, had to be replaced by http with string keys.
import { Options } from "./codec/types"; | ||
import type { Document as BsonDocument } from "bson"; | ||
// BSON uses top level awaits, so use require for now | ||
const bsonSerialize = require('bson').serialize; |
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.
🙄 THANKS BSON
Updated almost all of the dependencies to the latest version.
msw
breaking changes, but nothing special for our use cases.Suggested Tests
npm i && npm run build && npm run serve
cd examples/server && npm i && node app.js
http://localhost:3000
, open up the console and hit some buttons.