Skip to content

Commit

Permalink
Merge branch 'devel' into release-3.0.3
Browse files Browse the repository at this point in the history
# Conflicts:
#	v3-docs/v3-migration-docs/index.md
  • Loading branch information
denihs committed Sep 10, 2024
2 parents d806d6f + e89a68a commit f7c56d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions v3-docs/docs/.vitepress/theme/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,13 @@
--vc-c-orange-3: #b35e00;
--vc-c-orange-soft: rgba(255, 126, 23, 0.16);

--vc-c-meteor-red-1: #BF212E;
--vc-c-meteor-red-2: #A01A24;
--vc-c-meteor-red-3: #7F141D;
--vp-c-meteor-red-1: #E9A0A7;
--vp-c-meteor-red-2: #e9b4b8;
--vp-c-meteor-red-3: #f0c8cb;

--vc-c-meteor-red-1: #E9A0A7;
--vc-c-meteor-red-2: #e9b4b8;
--vc-c-meteor-red-3: #f0c8cb;
--vc-c-meteor-red-soft: rgba(191, 33, 46, 0.16);

--vp-c-yellow-1: #f9b44e;
Expand Down
2 changes: 1 addition & 1 deletion v3-docs/docs/api/meteor.md
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ Returns a handle that can be used by `Meteor.clearInterval`.

## Enviroment variables {#envs}

teor runs most app code within Fibers, which allows keeping track of the context a function is running in. `Meteor.EnvironmentVariable` works with `Meteor.bindEnvironment`, promises, and many other Meteor API's to preserve the context in async code. Some examples of how it is used in Meteor are to store the current user in methods, and record which arguments have been checked when using `audit-argument-checks`.
Meteor implements `Meteor.EnvironmentVariable` with AsyncLocalStorage, which allows for maintaining context across asynchronous boundaries. `Meteor.EnvironmentVariable` works with `Meteor.bindEnvironment`, promises, and many other Meteor API's to preserve the context in async code. Some examples of how it is used in Meteor are to store the current user in methods, and record which arguments have been checked when using `audit-argument-checks`.

```js
import { Meteor } from "meteor/meteor";
Expand Down
10 changes: 7 additions & 3 deletions v3-docs/v3-migration-docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,13 @@
--vc-c-orange-3: #b35e00;
--vc-c-orange-soft: rgba(255, 126, 23, 0.16);

--vc-c-meteor-red-1: #BF212E;
--vc-c-meteor-red-2: #A01A24;
--vc-c-meteor-red-3: #7F141D;
--vp-c-meteor-red-1: #E9A0A7;
--vp-c-meteor-red-2: #e9b4b8;
--vp-c-meteor-red-3: #f0c8cb;

--vc-c-meteor-red-1: #E9A0A7;
--vc-c-meteor-red-2: #e9b4b8;
--vc-c-meteor-red-3: #f0c8cb;
--vc-c-meteor-red-soft: rgba(191, 33, 46, 0.16);

--vp-c-yellow-1: #f9b44e;
Expand Down

0 comments on commit f7c56d8

Please sign in to comment.