Commit Graph

372 Commits

Author SHA1 Message Date
Nacho Codoñer
a49b559007 Merge pull request #13408 from meteor/upgrade-express-5
Upgrade Express 5
2024-11-04 14:44:23 +01:00
Leonardo Venturini
6f8b9f7900 remove lodash 2024-10-18 08:50:06 -04:00
Leonardo Venturini
2659e005b7 Merge branch 'release-3.1.0' into underscore/webapp 2024-10-17 07:55:57 -04:00
Nacho Codoñer
f56801a160 configure default query parser to adapt the breaking change 2024-10-09 17:25:04 +02:00
Jan Dvorak
9102acb059 Add catch for empty user agent string 2024-10-01 17:13:41 +02:00
Jan Dvorak
d3d1b9221f Replace useragent with useragent-ng and #13341
This should mitigate potential ReDoS vulnerability.
2024-09-17 09:57:16 +02:00
harryadel
d4a54c8ee6 Merge branch 'devel' into underscore/webapp 2024-08-22 17:10:25 +03:00
Nacho Codoñer
232b8a8c8b OSS-459 Posix indirect dependency replacement (#13204)
* implement tests to tweak socket files behaviors and group config

* re-run checks

* better test coverage on UNIX_SOCKET_PATH and UNIX_SOCKET_GROUP usage

* create socker file as part of the tests

* replace @vlasky/whomst dependency to use a unix-standard way to get gid from group name

* ensure test cross-compatibility on unix/macos

* clean

* register cleanup

* ensure close properly the net server instantiated

* temporary comment a test to see if CI passes

* Revert "temporary comment a test to see if CI passes"

This reverts commit 22b6517860.

* verify if new test is the culprit

* establish port

* establish port

* silent one test to see if CI fixed

* activate other test within the testAsyncMulti as may be the culprit on CI failure

* try set permissions as well

* print /etc/group

* use travis group

* ensure use proper group on travis CI to fix tests

* silent get group info logs

---------

Co-authored-by: Denilson <denilsonh2014@gmail.com>
2024-07-10 12:18:41 +02:00
Nacho Codoñer
8984419f7a fix webApp.addRuntimeConfigHook providing a regression test 2024-05-22 15:21:08 +02:00
Nacho Codoñer
09c3da2be1 fix webApp.addRuntimeConfigHook 2024-05-21 17:50:29 +02:00
Jan Dvorak
948b0af997 Merge branch 'devel' into underscore/webapp 2024-03-25 17:17:23 +01:00
Gabriel Grubba
3ee0458a2c Added express module for WebApp 2024-02-29 13:10:27 -03:00
filipenevola
09076cb317 Merge branch 'devel' into release-3.0
# Conflicts:
#	docs/package-lock.json
#	guide/package-lock.json
2023-12-09 09:34:23 -04:00
Jayant Sawarkar
c8e076dae3 fix/12878 incomingMessage and serverResponse node js link in api docs
Changes in   

packages > webapp > webapp_server.js  

line number : 
IncomingMessage  link  : 1145
ServerResponse  link : 1150
2023-11-28 08:22:33 +05:30
filipenevola
4a3afb4eef suppressConnectErrors now prints a warning
Renames suppressExpressErrors to _suppressExpressErrors as it should not be part of the public API, except for testing
2023-11-11 11:52:20 -05:00
filipenevola
94c50f9580 Fixes webapp_server comments and code to be Express aware 2023-11-02 11:53:19 -04:00
filipenevola
6a0b87e067 webapp: Renames expressHandlers to handlers
- Renames rawExpressHandlers to rawHandlers
- Brings back connectHandlers but now using express
- Adds deprecated to connectHandlers and rawConnectHandlers
- Updates the doc of 3.0 about these changes
- Updates packages using expressHandlers to use handlers
2023-09-23 10:10:33 -04:00
filipenevola
0a4f50deb3 webapp: Removes connect mention from the README and dependency 2023-09-08 07:41:23 -04:00
harryadel
b5e818e132 Iterate over values instead of keys for finishListeners 2023-05-06 14:01:02 +03:00
denihs
4f6cf3247f Merge branch 'devel' into release-3.0
# Conflicts:
#	docs/history.md
#	meteor
#	packages/accounts-base/accounts_tests.js
#	packages/ddp-server/.npm/package/npm-shrinkwrap.json
#	packages/meteor/dynamics_nodejs.js
#	packages/mongo/collection.js
#	packages/mongo/mongo_driver.js
#	packages/non-core/blaze
#	tools/static-assets/server/boot.js
#	tools/tests/create.js
2023-05-04 10:41:37 -04:00
Harry Adel
258b17aaec Merge branch 'devel' into underscore/webapp 2023-05-03 15:25:39 +03:00
Harry Adel
4f2ab13f2a Loop over finishListeners keys 2023-04-02 18:19:44 +02:00
Harry Adel
c4e6171cfc Merge branch 'devel' into underscore/webapp 2023-04-02 18:16:24 +02:00
harryadel
0ce0f5af11 Document main function in webapp 2023-04-02 05:42:29 +02:00
denihs
fe6188d7db - running core package tests 2023-02-24 14:59:10 -04:00
denihs
f650be7b89 - using _AsynchronousQueue in the server
- continue for looping instead of breaking it
2023-02-06 14:56:37 -04:00
denihs
482acb00f6 Merge branch 'release-3.0' into release-3.0-tools-and-mongo
# Conflicts:
#	packages/promise/promise-tests.js
2023-01-23 15:41:56 -04:00
Gabriel Grubba
e5e23fb7ce Merge branch 'release-3.0' into release-3.0-tests-webapp
# Conflicts:
#	docs/history.md
2023-01-18 17:45:19 -03:00
Gabriel Grubba
1d3cfca40a updated last express method 2023-01-18 17:40:23 -03:00
Gabriel Grubba
1b921ec331 chore: created abstraction on top of express creation 2023-01-18 17:23:46 -03:00
denihs
ead8c2a126 Merge branch 'release-3.0' into release-3.0-tools-and-mongo
# Conflicts:
#	meteor
#	npm-packages/eslint-plugin-meteor/scripts/dev-bundle-tool-package.js
#	npm-packages/meteor-babel/package-lock.json
#	npm-packages/meteor-babel/package.json
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	packages/babel-compiler/package.js
#	packages/meteor/package.js
#	scripts/dev-bundle-tool-package.js
2023-01-18 15:37:36 -04:00
denihs
c0a1308cb8 Merge branch 'devel' into release-3.0
# Conflicts:
#	docs/history.md
#	packages/accounts-password/password_server.js
2023-01-18 15:35:03 -04:00
denihs
43c3eb130f - merging the TLA branch 2023-01-18 15:23:41 -04:00
denihs
212a668cb7 - These methods are now async:
- `WebAppInternals.reloadClientPrograms()`
    - `WebAppInternals.pauseClient()`
    - `WebAppInternals.generateClientProgram()`
    - `WebAppInternals.generateBoilerplate()`
    - `WebAppInternals.setInlineScriptsAllowed()`
    - `WebAppInternals.enableSubresourceIntegrity()`
    - `WebAppInternals.setBundledJsCssUrlRewriteHook()`
    - `WebAppInternals.setBundledJsCssPrefix()`
2023-01-18 14:52:34 -04:00
Gabriel Grubba
e4a3fb561a chore: add raw handlers 2023-01-16 19:45:00 -03:00
Gabriel Grubba
8296afc897 chore: addressed security comments 2023-01-16 10:03:01 -03:00
Gabriel Grubba
560c1b383b feat: added express to webserver 2023-01-13 16:33:48 -03:00
Gabriel Grubba
be725b8712 chore: added express instead of connect 2023-01-13 12:32:50 -03:00
Gabriel Grubba
40e525eef8 chore: made getBoilerplate return a promise 2023-01-11 18:19:06 -03:00
Evan Broder
7eed486800 Allow multiple runtime config and updated runtime hooks
The forEach method on Hook will stop iterating unless the iterator
function returns a truthy value. Previously, this meant that only the
first registered runtime config hook would be called.
2023-01-04 14:16:41 -08:00
harryadel
8eba20f55e [webapp] Remove underscore 2022-10-21 12:13:59 +02:00
Matheus Castro
a40ec5392f Add code from "fibers-optional" branch with some modifications:
- Create new context for DDP server too.
- Removing some console.logs + adding some TODOS.
2022-08-18 13:16:21 -03:00
zodern
7809d814eb Remove check for replaceable files in production
There are replaceable files when the app was built with the --debug option, and then run with NODE_ENV set to production. There are no problems with replaceable files.
2022-02-16 12:02:16 -03:00
Jan Dvorak
dd0ed70229 WebApp option to always return content 2021-10-12 22:44:06 -04:00
zodern
371a69f731 Fix race conditions in HMR
- To know which change sets to apply, the client needs to know when the version running was built. It used the time the client loaded, but it could have loaded after a new version of the app was built, especially on cordova. Now it uses the actual time the client was built.
- On cordova, there is a delay between the client knowing there is an update available, and being able to reload the page to use the new version.
2021-10-12 22:43:55 -04:00
Bruce Johnson
6c6116edcd Add apibox documentation 2021-09-03 14:15:26 -07:00
Bruce Johnson
5aa606d60d go back to forEach on the hook (supported by callback-hook) 2021-09-01 11:32:29 -07:00
Bruce Johnson
8941cb6117 use callback-hook package 2021-09-01 09:46:54 -07:00
Bruce Johnson
4559dd51cb FIX:runtimeConfig.updateHooks 2021-08-27 12:03:34 -07:00
Bruce Johnson
7188c72351 Add WebApp.addUpdatedNotifyHook 2021-08-27 11:24:06 -07:00