discourse/app/assets/javascripts
David Taylor 011c9b9973
DEV: Use message-bus chunked encoding in development (#19878)
This was previously disabled because of incompatibility with the ember-cli proxy. This commit fixes that incompatibility, and restores the development behaviour to match production.

There were three issues at play:

1. Our bootstrap-js addon handles the forwarding of most requests in the ember-cli proxy. This is not built to handle streaming responses. Solution: skip our custom request processing for `/message-bus/*` and use ember-cli's default `http-proxy`.

2. The request/response size-limiting middleware (`rawMiddleware`) would apply even to unhandled paths, causing request and response bodies to be buffered. Solution: skip it for any paths which are not handled by our custom addon.

3. Expressjs servers will buffer/compress responses. Solution: add `Cache-Control: no-transform` to message-bus responses. For now I've done this in development only, but it may be useful to add it to message-bus's default headers in future
2023-01-17 09:54:33 +00:00
..
admin SECURITY: Convert send_digest to a post request (#19746) 2023-01-05 06:57:12 +08:00
bootstrap-json DEV: Use message-bus chunked encoding in development (#19878) 2023-01-17 09:54:33 +00:00
confirm-new-email DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dialog-holder DEV: Update json5, remove an unused lockfile (#19732) 2023-01-04 23:15:49 +01:00
discourse DEV: Use message-bus chunked encoding in development (#19878) 2023-01-17 09:54:33 +00:00
discourse-common Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
discourse-plugins Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
discourse-widget-hbs Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
pretty-text Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
select-kit UX: fix alignment issues with autocomplete (#19828) 2023-01-16 09:09:23 +11:00
truth-helpers Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
wizard Build(deps): Bump @babel/core in /app/assets/javascripts (#19723) 2023-01-04 22:50:20 +01:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Introduce minification and source maps for Theme JS (#18646) 2022-10-18 18:20:10 +01:00
handlebars-shim.js
package.json DEV: Make dialog-holder a monorepo package (#19051) 2022-11-16 16:43:45 +01:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FEATURE: Replyable chat push notifications (#18973) 2022-11-11 12:30:21 -03:00
yarn.lock Build(deps): Bump eslint in /app/assets/javascripts (#19873) 2023-01-15 22:32:00 +01:00