Repository navigation
Yank Express Application Generator, migrate Express tutorial to ESM - #45596
Conversation
2d61f42 to
b6c16cd
Compare
| const modelInstances = await SomeModel.find().exec(); | ||
| ``` | ||
|
|
||
| ## Setting up the MongoDB database |
There was a problem hiding this comment.
@hamishwillee FYI the steps here are very out of date and do not match what I see in my MongoDB interface. You may want to update these.
(But also as I said in the issue, I would prefer just getting rid of MongoDB.)
There was a problem hiding this comment.
@Josh-Cena As you say, a problem for another day.
1ab66b9 to
8fdc68a
Compare
8fdc68a to
f616593
Compare
Match the example code (mdn/express-locallibrary-tutorial#369): - Format BookInstance dates in UTC, so they aren't shown a day early west of UTC, and remove the note about that limitation. - Delete the author identified in the URL rather than an id from a hidden form field, and correct the explanation. - Redirect to book.url after updating a book. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Fix stale text left over from the generator and starter project - Fix typo in Book detail page - Update sample npm version and output, and the version prefix note - Reword the PowerShell note - Match the demo's viewport meta and Helmet comment - Fix indentation of the Delete author snippet and explain it - Fix date format in the BookInstance challenge - Retake and compress the BookInstance list and Author detail screenshots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Describe what server.js and routes/index.js actually do - Clarify what the DEBUG variable turns on - Correct the GraphQL description and match the ORM list form - Drop the unsupported claim that CommonJS is legacy - Use the due_back field name, not due_date - Explain which dates are stored as midnight UTC Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Express 5 API reference is now split into subpages, so the expressjs.com/en/5x/api/#... anchors no longer work. Also fix the express-router guide anchor and point the changelog link at the GitHub releases page that it now redirects to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Replace the Mongoose callback error-handling example, which no longer works in Mongoose 7+, with a Node readFile() callback example - Say what express.urlencoded() and express.json() each parse - Point the users route note at the running instructions, now later - Remove "required" left over from CommonJS in the forms overview - Explain the debug namespace in the deployment logging example - Say that model modules export the model itself - Link the MDN and Node ES modules pages in See also Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks @Josh-Cena
I've scanned through this and used Claude to fix a number of relatively minor issues, some that were pre-existing.
Open to fixing up the other dependencies. This is a great base for that as a post process. Much appreciated.
PS Someone messed with the code ownership of the demo repo and I can't accept changes. I've asked for it to be merged. I'm not waiting on it.
* upstream/main: (204 commits) [Editorial review] Add BiDi `network.setCacheBehavior` and `network.setExtraHeaders` pages (mdn#46140) build(deps-dev): bump @mdn/fred from 2.10.1 to 2.11.0 (mdn#46474) Reorder sections on HTML attribute pages (mdn#46483) Reorder sections on HTML element pages (mdn#46484) Fix live sample code block order in web API pages (mdn#46452) Move SVG attribute usage notes after examples (mdn#46458) Move SVG attribute elements section before examples (mdn#46459) Fix SuppressedError nesting in the `using` error handling example (mdn#46479) Editorial review: Document Web Audio render quantum size (mdn#46241) Remove the SVGAnimateColorElement page (mdn#46473) FF161 Relnote: Move WebTransport.anticipatedConcurrentIncoming{Uni|Bi}directionalStreams from 160 (mdn#46440) [WebExt] Screenshot updates to Nova (mdn#46270) build(deps-dev): bump cspell from 10.4.0 to 10.4.1 in the npm-dev group (mdn#46455) Update Firefox 160 release notes for WebDriver conforming changes. (mdn#46415) ci(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2 (mdn#46454) Move subtitles_en.vtt to shared-assets and update audio-video reference (mdn#46451) Yank Express Application Generator, migrate Express tutorial to ESM (mdn#45596) Fix heading sequence in web-api property pages (mdn#46450) Fix heading sequence in web-api interface pages (mdn#46448) Fix heading sequence in css-property pages (mdn#46447) ... # Conflicts: # files/en-us/web/webdriver/reference/bidi/modules/network/index.md # files/sidebars/webdriver.yaml
…epts * upstream/main: (195 commits) [Editorial review] Add BiDi `network.setCacheBehavior` and `network.setExtraHeaders` pages (mdn#46140) build(deps-dev): bump @mdn/fred from 2.10.1 to 2.11.0 (mdn#46474) Reorder sections on HTML attribute pages (mdn#46483) Reorder sections on HTML element pages (mdn#46484) Fix live sample code block order in web API pages (mdn#46452) Move SVG attribute usage notes after examples (mdn#46458) Move SVG attribute elements section before examples (mdn#46459) Fix SuppressedError nesting in the `using` error handling example (mdn#46479) Editorial review: Document Web Audio render quantum size (mdn#46241) Remove the SVGAnimateColorElement page (mdn#46473) FF161 Relnote: Move WebTransport.anticipatedConcurrentIncoming{Uni|Bi}directionalStreams from 160 (mdn#46440) [WebExt] Screenshot updates to Nova (mdn#46270) build(deps-dev): bump cspell from 10.4.0 to 10.4.1 in the npm-dev group (mdn#46455) Update Firefox 160 release notes for WebDriver conforming changes. (mdn#46415) ci(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2 (mdn#46454) Move subtitles_en.vtt to shared-assets and update audio-video reference (mdn#46451) Yank Express Application Generator, migrate Express tutorial to ESM (mdn#45596) Fix heading sequence in web-api property pages (mdn#46450) Fix heading sequence in web-api interface pages (mdn#46448) Fix heading sequence in css-property pages (mdn#46447) ... # Conflicts: # files/sidebars/webdriver.yaml
…tication * upstream/main: (186 commits) [Editorial review] Add BiDi `network.setCacheBehavior` and `network.setExtraHeaders` pages (mdn#46140) build(deps-dev): bump @mdn/fred from 2.10.1 to 2.11.0 (mdn#46474) Reorder sections on HTML attribute pages (mdn#46483) Reorder sections on HTML element pages (mdn#46484) Fix live sample code block order in web API pages (mdn#46452) Move SVG attribute usage notes after examples (mdn#46458) Move SVG attribute elements section before examples (mdn#46459) Fix SuppressedError nesting in the `using` error handling example (mdn#46479) Editorial review: Document Web Audio render quantum size (mdn#46241) Remove the SVGAnimateColorElement page (mdn#46473) FF161 Relnote: Move WebTransport.anticipatedConcurrentIncoming{Uni|Bi}directionalStreams from 160 (mdn#46440) [WebExt] Screenshot updates to Nova (mdn#46270) build(deps-dev): bump cspell from 10.4.0 to 10.4.1 in the npm-dev group (mdn#46455) Update Firefox 160 release notes for WebDriver conforming changes. (mdn#46415) ci(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2 (mdn#46454) Move subtitles_en.vtt to shared-assets and update audio-video reference (mdn#46451) Yank Express Application Generator, migrate Express tutorial to ESM (mdn#45596) Fix heading sequence in web-api property pages (mdn#46450) Fix heading sequence in web-api interface pages (mdn#46448) Fix heading sequence in css-property pages (mdn#46447) ... # Conflicts: # files/sidebars/webdriver.yaml
* upstream/main: (186 commits) [Editorial review] Add BiDi `network.setCacheBehavior` and `network.setExtraHeaders` pages (mdn#46140) build(deps-dev): bump @mdn/fred from 2.10.1 to 2.11.0 (mdn#46474) Reorder sections on HTML attribute pages (mdn#46483) Reorder sections on HTML element pages (mdn#46484) Fix live sample code block order in web API pages (mdn#46452) Move SVG attribute usage notes after examples (mdn#46458) Move SVG attribute elements section before examples (mdn#46459) Fix SuppressedError nesting in the `using` error handling example (mdn#46479) Editorial review: Document Web Audio render quantum size (mdn#46241) Remove the SVGAnimateColorElement page (mdn#46473) FF161 Relnote: Move WebTransport.anticipatedConcurrentIncoming{Uni|Bi}directionalStreams from 160 (mdn#46440) [WebExt] Screenshot updates to Nova (mdn#46270) build(deps-dev): bump cspell from 10.4.0 to 10.4.1 in the npm-dev group (mdn#46455) Update Firefox 160 release notes for WebDriver conforming changes. (mdn#46415) ci(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2 (mdn#46454) Move subtitles_en.vtt to shared-assets and update audio-video reference (mdn#46451) Yank Express Application Generator, migrate Express tutorial to ESM (mdn#45596) Fix heading sequence in web-api property pages (mdn#46450) Fix heading sequence in web-api interface pages (mdn#46448) Fix heading sequence in css-property pages (mdn#46447) ... # Conflicts: # files/sidebars/webdriver.yaml
…ollectors * upstream/main: (186 commits) [Editorial review] Add BiDi `network.setCacheBehavior` and `network.setExtraHeaders` pages (mdn#46140) build(deps-dev): bump @mdn/fred from 2.10.1 to 2.11.0 (mdn#46474) Reorder sections on HTML attribute pages (mdn#46483) Reorder sections on HTML element pages (mdn#46484) Fix live sample code block order in web API pages (mdn#46452) Move SVG attribute usage notes after examples (mdn#46458) Move SVG attribute elements section before examples (mdn#46459) Fix SuppressedError nesting in the `using` error handling example (mdn#46479) Editorial review: Document Web Audio render quantum size (mdn#46241) Remove the SVGAnimateColorElement page (mdn#46473) FF161 Relnote: Move WebTransport.anticipatedConcurrentIncoming{Uni|Bi}directionalStreams from 160 (mdn#46440) [WebExt] Screenshot updates to Nova (mdn#46270) build(deps-dev): bump cspell from 10.4.0 to 10.4.1 in the npm-dev group (mdn#46455) Update Firefox 160 release notes for WebDriver conforming changes. (mdn#46415) ci(deps): bump peter-evans/create-pull-request from 8.1.1 to 8.1.2 (mdn#46454) Move subtitles_en.vtt to shared-assets and update audio-video reference (mdn#46451) Yank Express Application Generator, migrate Express tutorial to ESM (mdn#45596) Fix heading sequence in web-api property pages (mdn#46450) Fix heading sequence in web-api interface pages (mdn#46448) Fix heading sequence in css-property pages (mdn#46447) ... # Conflicts: # files/sidebars/webdriver.yaml
Fix #41604.
There's no need not to use ESM. It offers top-level await, avoiding some very weird coding patterns. All documentation offers code examples in the ESM version.
Also removed Luxon, but not sure about modernizing the other dependencies. If agreed, they could be a follow-up tasks.