Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.7.2 #11999

Merged
merged 67 commits into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8239a2a
Re-create index when already exists #11666 #11750
StorytellerCZ Mar 30, 2022
235e092
Meteor installer for version 2.7.1
denihs Mar 31, 2022
ae67911
Giving a time window when verifying if a 2fa token is valid
denihs Apr 1, 2022
42bd1e9
Merge remote-tracking branch 'origin/devel' into feature/index-recrea…
StorytellerCZ Apr 2, 2022
fa2acf9
Put index re-creation behind a settings option
StorytellerCZ Apr 2, 2022
cd8db91
New api getMinimumBrowserVersions
brucejo75 Apr 3, 2022
9e8c6a4
Creating new skeleton that will have tailwind configured by default
denihs Apr 5, 2022
76c9861
Merge pull request #11998 from brucejo75/brucejo75/getMinimumBrowserV…
denihs Apr 5, 2022
25752b6
Merge pull request #11995 from meteor/feature/index-recreation
denihs Apr 5, 2022
0077e39
Aligning new tailwind's command text description
denihs Apr 5, 2022
796be4e
Add node bump version to the changelog.
fredmaiaarantes Apr 6, 2022
19c25d5
Removing custom css
denihs Apr 6, 2022
fd54de0
Update skeleton dependencies
StorytellerCZ Apr 7, 2022
ab74eee
Update history
StorytellerCZ Apr 7, 2022
cb91652
Fix typo in callback_logger.js
eltociear Apr 7, 2022
7d3109c
Stylishing the skeleton with tailwind
denihs Apr 7, 2022
06a9cbb
improve accounts docs
henriquealbert Apr 8, 2022
0ef5873
update instructions
henriquealbert Apr 11, 2022
53f3c44
Merge pull request #12005 from meteor/feature/improve-accounts-docs
denihs Apr 11, 2022
bf7ea24
Merge pull request #12003 from eltociear/patch-7
denihs Apr 11, 2022
2e19ebb
Merge pull request #12000 from meteor/feature/tailwind-skeleton
denihs Apr 11, 2022
cff68fb
Merge branch 'feature/update-skelets' into release-2.7.2
denihs Apr 11, 2022
e2f2fe1
Ability to disable sockjs on client side
maxpain Apr 13, 2022
5fe8d6b
documentation for DISABLE_SOCKJS env variable
maxpain Apr 13, 2022
181e8b1
Merge pull request #12007 from maxpain/devel
denihs Apr 13, 2022
c18486a
Add _dataUsed property to prelink resources
zodern Apr 13, 2022
a541c50
Improve error messages from readBufferWithLengthAndOffset
zodern Apr 13, 2022
4d66a8d
Remove extra log
zodern Apr 13, 2022
4084214
Remove outdated comment on warehouse path
zodern Apr 13, 2022
8f4644f
Remove unnecessary comment
zodern Apr 13, 2022
39fcdaa
Merge pull request #12010 from meteor/fix/unibuild-prelink-watching
denihs Apr 15, 2022
0c2b886
New api getMinimumBrowserVersions
brucejo75 Apr 3, 2022
b40efd8
Re-create index when already exists #11666 #11750
StorytellerCZ Mar 30, 2022
222022e
Put index re-creation behind a settings option
StorytellerCZ Apr 2, 2022
98b73f4
Fix typo in callback_logger.js
eltociear Apr 7, 2022
8699225
Creating new skeleton that will have tailwind configured by default
denihs Apr 5, 2022
c339ab8
Aligning new tailwind's command text description
denihs Apr 5, 2022
c7c3d71
Removing custom css
denihs Apr 6, 2022
4b21cff
Stylishing the skeleton with tailwind
denihs Apr 7, 2022
045f53a
Update skeleton dependencies
StorytellerCZ Apr 7, 2022
1e2e1df
Update history
StorytellerCZ Apr 7, 2022
93326a0
Ability to disable sockjs on client side
maxpain Apr 13, 2022
2714976
documentation for DISABLE_SOCKJS env variable
maxpain Apr 13, 2022
f7044e5
Add _dataUsed property to prelink resources
zodern Apr 13, 2022
e1ddf96
Improve error messages from readBufferWithLengthAndOffset
zodern Apr 13, 2022
ece6283
Remove extra log
zodern Apr 13, 2022
9f99273
Remove outdated comment on warehouse path
zodern Apr 13, 2022
ea2bb42
Remove unnecessary comment
zodern Apr 13, 2022
dc237a4
Updating history.md
denihs Apr 18, 2022
600b8e8
Merge remote-tracking branch 'origin/release-2.7.2' into release-2.7.2
denihs Apr 18, 2022
32a6617
Meteor version to 2.7.2-beta.0 :tada:
denihs Apr 18, 2022
195ca66
Downgrade buffer and punycode to support IE
zodern Apr 21, 2022
b2c327d
Update fetch.md
dulx98 Apr 25, 2022
296ce3a
Permit users to set uname info
aameen-tulip Apr 26, 2022
13d584e
Merge pull request #12014 from meteor/fix/meteor-node-stubs-ie
denihs Apr 28, 2022
8b7833c
Merge pull request #12018 from dulx98/patch-1
denihs Apr 28, 2022
5948efc
Merge pull request #12020 from aameen-tulip/patch-1
denihs Apr 28, 2022
0789d03
Merge branch 'devel' into release-2.7.2
denihs Apr 28, 2022
60bcb3f
Meteor version to 2.7.2-rc.0 :tada:
denihs Apr 28, 2022
e2ebb68
Bumping meteor-tool version
denihs Apr 28, 2022
38cc5ea
Bumping meteor-node-stubs version
denihs Apr 28, 2022
6b8dabf
Bumping meteor-node-stubs version
denihs Apr 28, 2022
f4d599f
fix url to galaxy deployment guide
copleykj Apr 29, 2022
2aab243
Merge pull request #12024 from copleykj/patch-deployment-url
denihs May 2, 2022
43faa0d
Merge branch 'devel' into release-2.7.2
denihs May 4, 2022
b60b99e
Meteor version to 2.7.2 :tada:
denihs May 9, 2022
2014b4a
New meteor-installer npm version
denihs May 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/history.md
@@ -1,3 +1,28 @@
## 2.7.2, 2022-04-XX

#### Highlights

#### Breaking Changes
N/A
#### Migration Steps

#### Meteor Version Release

* `mongo@1.15.0`
- New option `Meteor.settings.packages.mongo.reCreateIndexOnOptionMismatch` for case when an index with the same name, but different options exists it will be re-created.
- If there is an error on index creation Meteor will output a better message naming the collection and index where the error occured. [PR](https://github.com/meteor/meteor/pull/11995).
* `modern-browsers@0.1.8`
- New api `getMinimumBrowserVersions` to access the `minimumBrowserVersions`. [PR](https://github.com/meteor/meteor/pull/11998).
* `socket-stream-client@0.5.0`
- Ability to disable sockjs on client side. [PR](https://github.com/meteor/meteor/pull/12007/).
*`meteor-node-stubs@1.2.2`:
- Fix using meteor-node-stubs in IE. [PR](https://github.com/meteor/meteor/pull/12014).
* New ARCH environment variable that permit users to set uname info. [PR](https://github.com/meteor/meteor/pull/12020).
* Skeleton dependencies updated.
* New Tailwind skeleton. [PR](https://github.com/meteor/meteor/pull/12000).

#### Independent Releases

## v2.7.1, 2022-03-31

#### Highlights
Expand Down Expand Up @@ -31,6 +56,7 @@
## v2.7, 2022-03-24

#### Highlights
* Bump node version to 14.19.1
* TailwindCSS 3.x support
* Typescript `4.5.4` upgrade
* New core package: `accounts-2fa`
Expand Down
3 changes: 2 additions & 1 deletion docs/source/api/accounts.md
Expand Up @@ -227,9 +227,10 @@ First, add the service configuration package:
meteor add service-configuration
```

Then, in your app (this example is for the Weebo service):
Then, inside the server of your app (this example is for the Weebo service), import `ServiceConfiguration`:

```js
import { ServiceConfiguration } from 'meteor/service-configuration';
ServiceConfiguration.configurations.upsert(
{ service: 'weibo' },
{
Expand Down
16 changes: 16 additions & 0 deletions docs/source/api/collections.md
Expand Up @@ -408,6 +408,22 @@ Example defining a simple index on Players collection in Meteor:
Players.createIndex({ userId: 1 }, { name: 'user reference on players' });
```

Sometimes you or a package might change an already established indexes. This might throw an error and prevent a startup.
For cases where you can afford to re-build indexes or the change affect too many indexes you can set the `reCreateIndexOnOptionMismatch`
to true in your `settings.json`:

```json
{
"packages": {
"mongo": {
"reCreateIndexOnOptionMismatch": true
}
}
}
```

> You should use this option only when you are dealing with a change across many indexes and it is not feasible to fix them manually and you can afford the re-building of the indexes as this will destroy the old index and create a new one. Use this carefully.

{% apibox "Mongo.Collection#allow" %}

{% pullquote warning %}
Expand Down
5 changes: 5 additions & 0 deletions docs/source/environment-variables.md
Expand Up @@ -28,6 +28,11 @@ Setting `DDP_DEFAULT_CONNECTION_URL` when building (`meteor build`) will define

In the event that your own deployment platform does not support WebSockets, or you are confident that you will not benefit from them, setting this variable with `DISABLE_WEBSOCKETS=1` will explicitly disable WebSockets and forcibly resort to the fallback polling-mechanism, instead of trying to detect this automatically.

## DISABLE_SOCKJS
(_development, production_)

Set `DISABLE_SOCKJS=1` if you want to use the native WebSocket implementation instead of SockJS on the client side, for example, if you want to use a custom WebSocket implementation (e.g. [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js/)) on the server side.

## HTTP_FORWARDED_COUNT
(_production_)

Expand Down
33 changes: 19 additions & 14 deletions docs/source/packages/fetch.md
Expand Up @@ -40,20 +40,25 @@ import { Meteor } from 'meteor/meteor';
import { fetch, Headers } from 'meteor/fetch';

async function postData (url, data) {
const response = await fetch(url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, *same-origin, omit
headers: new Headers({
Authorization: 'Bearer my-secret-key',
'Content-Type': 'application/json'
}),
redirect: 'follow', // manual, *follow, error
referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
body: JSON.stringify(data) // body data type must match "Content-Type" header
});
return response.json();
try {
const response = await fetch(url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, *same-origin, omit
headers: new Headers({
Authorization: 'Bearer my-secret-key',
'Content-Type': 'application/json'
}),
redirect: 'follow', // manual, *follow, error
referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
body: JSON.stringify(data) // body data type must match "Content-Type" header
});
const data = await response.json();
return response(null, data);
} catch (err) {
return response(error, null);
}
}

const postDataCall = Meteor.wrapAsync(postData);
Expand Down
2 changes: 1 addition & 1 deletion guide/source/deployment.md
Expand Up @@ -129,7 +129,7 @@ Galaxy is a distributed system that runs on Amazon AWS. If you understand what i

In order to deploy to Galaxy, you'll need to [sign up for an account](https://www.meteor.com/galaxy/signup), and separately provision a MongoDB database (see below).

Once you've done that, it's easy to [deploy to Galaxy](http://galaxy-guide.meteor.com/deploy-guide.html). You need to [add some environment variables to your settings file](http://galaxy-guide.meteor.com/environment-variables.html) to point it at your MongoDB, and you can deploy with:
Once you've done that, it's easy to [deploy to Galaxy](https://galaxy-guide.meteor.com/deploy-to-galaxy.html). You need to [add some environment variables to your settings file](http://galaxy-guide.meteor.com/environment-variables.html) to point it at your MongoDB, and you can deploy with:

```bash
DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy your-app.com --settings production-settings.json
Expand Down
13 changes: 9 additions & 4 deletions meteor
Expand Up @@ -4,15 +4,20 @@ BUNDLE_VERSION=14.19.1.0

# OS Check. Put here because here is where we download the precompiled
# bundles that are arch specific.
UNAME=$(uname)
# Use of : "${ARCH:=$(uname)}" assignment permits users to set their
# architecture manually; this is useful for multi-arch systems whose
# uname executables may sometimes return different architectures in
# different contexts.
# Ex: ARCH=arm64 meteor ARGS...;
UNAME="$(uname)"
if [ "$UNAME" != "Linux" -a "$UNAME" != "Darwin" ] ; then
echo "Sorry, this OS is not supported."
exit 1
fi

if [ "$UNAME" = "Darwin" ] ; then
if [ "arm64" == "$(uname -m)" ]; then
ARCH="arm64"
: "${ARCH:=arm64}"
else
if [ "i386" != "$(uname -p)" -o "1" != "$(sysctl -n hw.cpu64bit_capable 2>/dev/null || echo 0)" ] ; then

Expand All @@ -21,10 +26,10 @@ if [ "$UNAME" = "Darwin" ] ; then
echo "Only 64-bit and arm64 processors are supported at this time."
exit 1
fi
ARCH="x86_64"
: "${ARCH:=x86_64}"
fi
elif [ "$UNAME" = "Linux" ] ; then
ARCH="$(uname -m)"
: "${ARCH:=$(uname -m)}"
if [ "$ARCH" != "x86_64" ] ; then
echo "Unsupported architecture: $ARCH"
echo "Meteor only supports x86_64"
Expand Down
3 changes: 3 additions & 0 deletions npm-packages/meteor-installer/README.md
Expand Up @@ -12,6 +12,9 @@ npm install -g meteor

| NPM Package | Meteor Official Release |
|-------------|-------------------------|
| 2.7.3 | 2.7.2 |
| 2.7.2 | 2.7.1 |
| 2.7.1 | 2.7 |
| 2.7.0 | 2.7 |
| 2.6.2 | 2.6.1 |
| 2.6.1 | 2.6 |
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/config.js
@@ -1,7 +1,7 @@
const path = require('path');
const os = require('os');

const METEOR_LATEST_VERSION = '2.7';
const METEOR_LATEST_VERSION = '2.7.2';
const sudoUser = process.env.SUDO_USER || '';
function isRoot() {
return process.getuid && process.getuid() === 0;
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/package.json
@@ -1,6 +1,6 @@
{
"name": "meteor",
"version": "2.7.0",
"version": "2.7.3",
"description": "Install Meteor",
"main": "install.js",
"scripts": {
Expand Down