Commit Graph

359 Commits

Author SHA1 Message Date
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
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
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
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
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
Bruce Johnson
56207a6e55 fix updated flag to be true for all hook subscribers 2021-07-15 05:57:30 -07:00
Jan Dvorak
21cd1f17f3 Merge pull request #11506 from brucejo75/brucejo75/addRuntimeConfigHook
Hook __meteor_runtime_config__ at runtime
2021-07-14 10:20:00 +02:00
Jan Dvorak
e245fd4992 Update webapp dependencies 2021-07-12 22:54:39 +02:00
Bruce Johnson
1b874699d0 Incorporated feedback 2021-07-07 14:43:39 -07:00
Bruce Johnson
c5d38638cc new method: addRuntimeConfigHook 2021-06-29 16:40:48 -07:00
Vlad Lasky
a6c6bef4be Made UNIX_SOCKET_GROUP code more concise by removing unnecessary local variables & conditional checks 2021-06-04 17:23:17 +10:00
Vlad Lasky
4ad743883a Missing 'let' before unixSocketGid declaration. 2021-05-30 12:10:28 +10:00
Vlad Lasky
f1a969d584 Environment variable UNIX_SOCKET_GROUP can now be used to override the default UNIX group name/gid on the socket file specified in UNIX_SOCKET_PATH. 2021-05-28 22:14:54 +10:00
Vlad Lasky
fce87647e7 readFileSync() and chmodSync() are now imported in a single import statement. 2021-05-27 09:42:46 +10:00
Vlad Lasky
95b089b653 Optional environment variable UNIX_SOCKET_PERMISSIONS will now set the permissions on the UNIX_SOCKET_FILE. 2021-05-24 09:42:52 +10:00
Jan Dvorak
b636d8d9e6 Merge branch 'devel' into nm-webapp-request-methods 2021-04-23 14:51:53 +02:00
Filipe Névola
ff095d04ba Merge branch 'devel' into nm-webapp-request-methods 2021-03-31 11:21:21 -04:00
Vlad Lasky
8fef64c2c1 Merge remote-tracking branch 'upstream/devel' into cluster 2021-03-31 16:12:31 +11:00