Commit Graph

130 Commits

Author SHA1 Message Date
denihs
a593ad95ef - removing unnecessary fiber import 2023-01-24 11:52:24 -04:00
denihs
aa9147ab88 await core-runtime package to run 2023-01-23 10:40:40 -04:00
denihs
afbe556c14 - catching error on boot.js 2023-01-20 13:57:20 -04:00
denihs
c6f157048e - removing await from boot.js. Trying to run tests 2023-01-19 13:36:31 -04:00
denihs
43c3eb130f - merging the TLA branch 2023-01-18 15:23:41 -04:00
denihs
048f4a0f47 Merge branch 'feature/top-level-await-reify' into release-3.0-tools-and-mongo
# Conflicts:
#	npm-packages/meteor-babel/package-lock.json
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	tools/isobuild/linker.js
#	tools/static-assets/server/boot.js
2023-01-18 15:13:27 -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
denihs
8875a2a191 Merge branch 'release-3.0-mongo-tests' into release-3.0-tools-and-mongo
# Conflicts:
#	packages/meteor/async_helpers.js
#	tools/static-assets/server/boot.js
2023-01-18 13:47:48 -04:00
zodern
0ffaf9fb16 Simplify waiting for server bundles 2023-01-06 17:16:07 -06:00
zodern
e63909eda8 Fix inconsistent timing for server startup hooks 2023-01-06 17:14:36 -06:00
Edimar Cardoso
22ebfd7081 Fix error for undefined global.asyncLocalStorage 2023-01-06 16:34:43 -03:00
Edimar Cardoso
193e47191b Fix error for undefined global.asyncLocalStorage 2023-01-06 16:28:12 -03:00
zodern
388beb8711 Wait for async modules before running startup hooks 2022-12-30 15:27:07 -06:00
zodern
1e91d6fbf2 Merge branch 'release-3.0' into feature/top-level-await-reify 2022-12-30 14:41:18 -06:00
zodern
180f681446 Delay startup hooks until after eager async modules 2022-12-23 16:23:47 -06:00
Matheus Castro
f7c419a3d9 Remove Fibers from meteor-tools:
- Use set instead of array when storing the node modules directory. Also check first from fileInfo.node_modules, and then loop through the other options when checking if the node modules for the given package exists.
2022-12-21 19:54:02 -03:00
Matheus Castro
53c24bbf6f Remove Fibers from meteor-tools:
- Fixing package stats issues and setting global.asyncLocalStorage when needed.
2022-12-20 17:16:18 -03:00
Matheus Castro
1df85b0e39 Remove Fibers for Meteor Tools:
- Add missing "awaits".
2022-12-16 17:14:05 -03:00
Matheus Castro
a76c30693f Remove Fibers for Meteor Tools:
- Start changing the meteor run command now. It's throwing errors when trying to check constraints/package-versions.
2022-12-14 21:48:59 -03:00
Edimar Cardoso
92233e132c Require review alternative to Fibers uses 2022-12-06 20:35:57 -03:00
denihs
b60d7d44f5 changing EV.withValue, EV.get, and bindEv to work with ALS without relaying on global array 2022-11-30 17:15:05 -04:00
Matheus Castro
26b16b5db3 Move ASL helpers to it's own file and attach it to Meteor's global object.
On tools, however, we still need to use the process.env value (when starting the server in boot.js).
2022-08-19 20:03:25 -03: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
Edimar Cardoso
3248602f94 Renaming method isFibersEnabled to _isFibersEnabled because it is an internal method. 2022-07-28 15:40:53 -03:00
Edimar Cardoso
bb37fae4c5 Create method to check if Fibers is enabled by flag DISABLE_FIBERS. 2022-07-21 17:20:45 -03:00
filipenevola
1b87f063fc Change reify to @meteorjs/reify 2021-11-24 09:37:24 -03:00
Filipe Névola
cb00f74cd2 Merge branch 'release-2.3' into release-node-14 2021-05-19 17:34:55 -04:00
zodern
07871e9a2e Merge branch 'devel' into reify-runtime-compiler-cache 2021-04-30 17:26:39 -05:00
Jan Dvorak
f154deee3d Merge branch 'devel' into release-node-14 2021-04-29 20:22:01 +02:00
zodern
ad2232e1d3 Skip unnecessarily reading empty cache directory 2021-04-26 14:19:57 -05:00
zodern
6038bd5c59 Add cache for reify runtime compiler 2021-04-26 13:57:12 -05:00
filipenevola
1607d195c7 merge devel to node-14 branch 2021-03-15 19:04:10 -04:00
PrestonGiorgianni
f0aef7afb0 Reorder code to fix absoluteFilePath on windows fixes #11312 2021-03-15 13:46:14 -07:00
Bruce Johnson
85da5b4186 use includes instead of indexOf 2021-02-18 14:13:54 -08:00
Bruce Johnson
9ef377a0ad Fix issue #11320. WindowsLikeFilesystem true when release string includes case insensitive word microsoft. 2021-02-15 16:03:11 -08:00
Jan Dvorak
5f59a6ad15 Bump to Node 14.15.1 to include security patch
Bumps to latest Node 14 version to include October security patch & bumps minimum node versions in dev bundle and boot.
2020-11-25 14:24:57 +01:00
Filipe Névola
f80ae8205d Adds support to override mongo options via Meteor settings (#10976)
* Adds support to mongo options via Meteor settings
The options are in the `packages` key in the `mongo` key that is the package name. We should use the pattern every time we need a setting in a package.
2020-04-17 13:04:35 -04:00
Ben Newman
cb58f9af85 Require Node.js 12 when running Meteor 1.9 apps.
We haven't always updated this minimum version when we've changed the
Node.js version bundled with Meteor, which is fine because most deployment
strategies (including Galaxy) use the right version of Node.js
automatically. With Meteor 1.9 and Node.js 12.14.0, however, it seems
important that we make absolutely sure new Meteor apps are not getting run
in production with an end-of-life'd version of Node.js (v8).
2020-01-02 11:38:21 -05:00
Ben Newman
769337551e Convert tools/tool-env/profile.js to TypeScript.
Unfortunately, this conversion triggered an error due to one of the
shortcomings of the Babel implementation of TypeScript:

SyntaxError: /tools/tool-env/profile.ts: Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript
  278 | }
  279 |
> 280 | export namespace Profile {
      |                  ^
  281 |   export let enabled = !! process.env.METEOR_PROFILE;
  282 |
  283 |   export function time<TResult>(bucket: string, f: () => TResult) {
    at File.buildCodeFrameError (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/core/lib/transformation/file/file.js:261:12)
    at transpileNamespace (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/plugin-transform-typescript/lib/namespace.js:25:25)
    at PluginPass.TSModuleDeclaration (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/plugin-transform-typescript/lib/index.js:271:32)
    at newFn (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/visitors.js:193:21)
    at NodePath._call (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/path/context.js:88:12)
    at TraversalContext.visitQueue (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:118:16)
    at TraversalContext.visitMultiple (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:85:17)
    at TraversalContext.visit (/Users/ben/meteor/dev_bundle/lib/node_modules/@babel/traverse/lib/context.js:144:19)
2019-07-06 09:18:35 -04:00
Ben Newman
8a409d196c Convert mini-files.js to TypeScript. 2019-07-04 14:43:51 -04:00
Ben Newman
9b01729c79 Use reify/lib/parsers/babel rather than acorn.
Acorn seems to have trouble parsing code that @babel/parser parses
successfully, such as the dist/esm.js file in markdown-to-jsx@6.10.2.
2019-07-03 10:03:28 -04:00
Ben Newman
f7f36bb758 Use default parser for Reify Module.prototype._compile hook.
This saves us from having to install @babel/parser in the server bundle.

There is currently a bug in Reify that prevents it from loading this
parser by default, but we can work around that on the Meteor side for now.
2019-07-02 15:31:16 -04:00
Ben Newman
0c5cb13136 Ensure all code evaluated by Node is compiled with Reify. 2019-07-02 13:15:46 -04:00
Ben Newman
28d74dcc9f Use Reify to compile dynamic import(...). 2019-05-15 19:12:09 -04:00
Ben Newman
114a348bb3 Convert programs/server/debug.js to TypeScript.
Another tiny module (like tools/isobuild/css-modules.ts) that proves we
can use TypeScript in programs/server/* code.
2019-04-26 18:55:08 -04:00
Ben Newman
c9ba0f3a22 Install latest Reify runtime in programs/server/main.js.
Also updated meteor-babel in the dev bundle to depend on reify@0.18.1, to
be consistent with the version used by server code.
2019-04-26 18:55:08 -04:00
Ben Newman
59c66baa9b Convert tools/static-assets/server/mini-files.js to module. 2019-04-23 19:21:57 -04:00
Ben Newman
a96241911a Address review feedback from @glasser. 2019-02-04 14:22:29 -05:00
Ben Newman
312d06a90a Add gitRevision property to star.json and __meteor_runtime_config__.
This information is useful when you need a unique identifier for the
current version of the application (and you're using Git).

If the current Git HEAD revision can't be found for any reason, the
gitRevision property simply will not appear in star.json or
__meteor_runtime_config__.
2019-02-04 11:51:38 -05:00
Ben Newman
8310870c44 Tolerate clientJson.clientArchs in dynamic-import boot.js setup. 2018-07-04 10:15:26 -04:00