10 ms·
Node.js 13.0
- dfabulich 7y agoTo save you the clicks: Node 13 doesn't support top-level await. Node includes V8 7.8, released Sep 27. https://v8.dev/blog/v8-release-78 https://v8.dev/blog/v8-release-78 Top-level await merged into V8 on Sep 24, but didn't make it in time for the 7.8 release. https://chromium.googlesource.com/v8/v8.git/+/0ceee9ad28c21bc4971fb237cf87eb742fc787b8%5E%21/ https://chromium.googlesource.com/v8/v8.git/+/0ceee9ad28c21b...
- deleted 7y ago[deleted]
- snek 7y agoTLA is only in modules. Once node supports modules, it will also have TLA. We're also pushing out a version with 7.9 fairly soonish.
- draw_down 7y ago> To save you the clicks: Node 13 doesn't support top-level await. Well, let's hope someone out there finds it useful, despite it lacking this feature that every release before has also lacked.
- burtonator 7y agoI've been using node with typescript and it's amazing. VERY productive. The key thing is you can do a large refactoring without breaking anything. The biggest challenge I have right now is actually the tooling. Intellij tends to break sometimes. I'm using lerna for a monorepo with sub-modules and it's buggy with regular npm. For example 'npm audit' doesn't work. I might have to migrate to yarn...
- bytematic 7y agoI migrated to yarn workspaces and it made things very simple. It definitely handles dependencies better.
- deleted 7y ago[deleted]
- _bxg1 7y agoOut of curiosity, why do you use IntelliJ instead of VSCode for a TypeScript codebase? VSCode was practically purpose-built for TypeScript.
- sod 7y agoIntelliJ is just a very well written IDE. Searching for methods still feels better in IntelliJ. Or the refactoring possibilities like - move an interface/function/class into a separate file and IntelliJ will fix all imports to the reference for you. Under the hood they nowaday also use the language services (like typescript), but there are so many features on top.
- _bxg1 7y agoVSCode is great at the things you just mentioned. I agree IntelliJ is excellent for Java, but even multi-ecosystem tools tend to be biased towards certain use cases.
- root_axis 7y agoLanguage-servers make the choice of IDE moot. My vim setup is just as capable with typscript as vscode.
- _bxg1 7y agoThey don't completely. They help a ton, but certain IDEs are designed holistically with certain use-cases in mind and have very specific features that lend themselves to those use-cases on top of the basic error/autocomplete language support. For example, the Rust extension in VSCode gives me an inline button next to any function that's annotated as a test, which I can click to run that test. That's really useful and really specific to Rust. Whereas other IDEs (or other IDE extensions) might just do a bare-bones language server hookup to show errors and that's it.
- root_axis 7y ago
- judge2020 7y agoJetbrain's intended javascript/typescript IDE is WebStorm, but I wouldn't blame you for not using it since it's a $60/year commercial product [but free for students and open source projects].
- Nullabillity 7y agoAll of WebStorm's features are integrated into IntelliJ Ultimate, which is what I'd assume that the GP is using.
- jonluca 7y agoThe timezone fix is pretty nice. It's one of those issues that seeps into the institutional knowledge of a project and people tell you to "just fix it in your code". I suspect stackoverflow questions on node runtime timezone changes will plummet :)
- simplyinfinity 7y agoconsole: The output console.timeEnd() and console.timeLog() will now automatically select a suitable time unit instead of always using milliseconds (Xavier Stouder) #29251 Am I the only one that finds this unacceptable? Instead of a consistent result of a number, let's return string.. That now I have to parse..
- CryoLogic 7y agoAgreed. That's a ridiculous change. A well defined function should have a single purpose, and a reliable and repeatable output.
- avarun 7y agoIt's a function on `console`. It's meant to be human-readable, not machine-readable.
- sundvor 7y agoConsole logging can be useful for eg being fed into Splunk from an ECS instance. I don't do node.js so perhaps there are other ways of doing that specifically. (Works great in .net core)
- _bxg1 7y agoIt doesn't output back into your code though; it goes directly to stdout, so its main priority is readability for debugging. If you need log-quality output for parsing by another program there are plenty of libraries for getting time in whatever format you wish.
- dickeytk 7y agoI think it’s ok, it’s just a debug statement that I think outputs to stderr. You should never be parsing it.
- simplyinfinity 7y agoShouldn't it be better to have a second function that spits out a formatted version? Or a parameter for a format. Or a parameter to switch between pretty and raw numbers?
- javajosh 7y agoSpeaking of which, is anyone using deno (https://deno.land/ https://deno.land/) for anything real yet?
- economyballoon 7y agoWhen I think secure I think import { serve } from "https://deno.land/std@v0.19.0/http/server.ts"; It would be better to integrate something into Node.js instead of inflating a new economy balloon!
- RunawayGalaxy 7y agoWhat do you think is happening when you `npm install` or `yarn add` a package?
- judge2020 7y ago`npm`/`yarn` have hash checks when using the lockfile (side note: you should be using `npm ci` in your deployments so it doesn't install newer versions). Maybe there could be a lockfile system for webpack that would verify a file like the one they suggest doesn't change between installs and systems.
- realPubkey 7y agoDoesnt deno also have a lockfile?
- rhacker 7y agoThat's why I don't want to use it personally, it's all in the imports. Making things a pita when you want to just upgrade something.
- sunseb 7y agoYeah, we need a new JS ecosystem, let's rebuild all our stuff using deno instead node, because it was a quiet year and we have all recovered from the JS fatigue.
- snek 7y agoYou can also now tell Node.js to use the experimental REPL (https://github.com/nodejs/repl https://github.com/nodejs/repl) by default using the NODE_REPL_EXTERNAL_MODULE env variable!
- lloydatkinson 7y agoStill no ES module support that doesn’t require special flags or weird file extensions? Come on