* feat: add nextjs middleware handling split
* fix: eslint errors
* fix: filter boolean from csp list
* fix: feature flag nextjs server start
* feat: add prettier rules for ts,tsx files
* fix: remove unnecessary async from next middleware
* fix: next middleware name
* Update tsconfig.json
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Update next-env.d.ts
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* fix: add typescript linting to lint command
* add comment for unsafe-eval, update webpack to use eval in development
* fix: feature flag typo
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Middleware overhaul!
- Remove unnecessary 'async' keywords from middleware functions
- Ensure all middleware functions we create have names
- Wrap the method contents of all async middleware functions in a try-catch+next(error) pattern
* Use asyncMiddleware wrapper instead of try-catch+next(error) pattern
* Remove unnecessary try-catch+next(error) pattern from context middleware
* Do not load the timeout middleware during testing
* Run the link-check-server in testing mode to avoid loading the timeout middleware
* Revert the change to 'package.json'
* Also consider GITHUB_ACTIONS to be a testing environment to support the link checkers
* Add middleware to timeout requests after a period
* Add halt-on-dropped-connection middleware to stop the middleware processing stack if the connection was already dropped
* Add a few strategic bail-out spots for dropped connections during the render-page middleware
* Handle 404s and HEAD requests earlier in the page rendering flow
* Add a few more strategic bail-out spots for dropped connections during the render-page middleware
* Add middleware to notice aborted requests
* Add a check for aborted requests into the isConnectionDropped logic
* Reformat comment for consistency
* Handle aborted requests correctly in the error handler
* Explicit returns for consistency
* Cache archived asset JS/CSS for a day
* Don't waste time with ETag calculations
* Add a comment about the expiration length
* Cache images and fonts for a day
* Cache GraphQL data files for a week
* Set Fastly surrogate-key header on all responses
* Update test to account for new response header
* Add instrument-middleware.js
* Make it do some fancy require-ing
* Use it
* Prefix names
* dot prefix
* Improve async detection
* Add some comments
* Can't instrument error handler
* Move site search to use an endpoint
* Update browser.js
* Update search.js
* Update lib/search/versions.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Fix URLs
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* npm i connect-datadog
* Add connectDatadog middleware
* Add comments
* Use DD_API_KEY to gate
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
* Create basic layout
* Create stubbed out release note YAML
* Get a real implementation going
* Simplify using site-data
* Add a real page to send from render-page.js
* Use array of patches
* Render patches
* Add sidebar and breadcrumbs
* Reverse order
* Add date
* Tweak labels
* Redirect to entweb for missing versions
* Render patch.intro
* Move to separate files for patches
* Show support for RC versions
* Improve some comments
* Sticky headers!
* Remove a console log
* Improve example formatting
* Add a link on /admin
* Add a schema and test
* Move to /index.md, add version_num filter
* Improve layout
* Use <details>
* Placeholder more realistic notes
* Don't require links in index pages
* Remove admin/index link for now
* Remove unused frontmatter field
* Add a test for middleware
* Fix remaining YAML file to test CI
* Update 2-rc.yml
* Don't call it RC
* Just push
* Make a main a div
* Fix a borked class
* Lint YAML files
* Improve Download link
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
* Improve check order
* Move to contextualizers
* Use alternative version thing
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
* Move back to `release-notes.md`
* Use version for anchor IDs
* Undo category-pages test change
* Fix borked details layout in Chrome
* Improve mobile setup
* Render markdown in note tags
* Use allVersions[currentVersion] again
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
* Undo change to extended-markdown
* Add whitespace so it renders markdown bits
* Remove 2-22 files
* Add check for any release notes
* Fix the failing tests
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
* remove FEATURE_NEW_VERSIONS from feature-flags.json
* remove process.env.FEATURE_NEW_VERSIONS from include files
* remove process.env.FEATURE_NEW_VERSIONS from lib files
* remove process.env.FEATURE_NEW_VERSIONS from middleware files
* remove process.env.FEATURE_NEW_VERSIONS from script files
* remove process.env.FEATURE_NEW_VERSIONS from test files
* update test fixtures to use new versions as canonical fixtures