Merge branch 'devel' into patch-1

This commit is contained in:
Nacho Codoñer
2024-05-03 08:21:14 +02:00
committed by GitHub
54 changed files with 895 additions and 380 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
@henriquealbert @denihs @fredmaiaarantes @nachocodoner

View File

@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 14.x
- run: npm ci

View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: cd scripts/admin/check-legacy-syntax && npm ci

View File

@@ -11,13 +11,13 @@ jobs:
working-directory: docs/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 12.x
- name: Build the Docs
run: npm ci && npm run build
- name: Deploy to Netlify for preview
uses: nwtgck/actions-netlify@v1.2.4
uses: nwtgck/actions-netlify@v2.1.0
with:
publish-dir: './docs/public/'
production-branch: devel

View File

@@ -11,13 +11,13 @@ jobs:
working-directory: guide/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 12.x
- name: Build the Guide
run: npm ci && npm run build
- name: Deploy to Netlify for preview
uses: nwtgck/actions-netlify@v1.2.4
uses: nwtgck/actions-netlify@v2.1.0
with:
publish-dir: './guide/public'
production-branch: devel

View File

@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

View File

@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

View File

@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

View File

@@ -10,7 +10,8 @@
[![Travis CI Status](https://api.travis-ci.com/meteor/meteor.svg?branch=devel)](https://app.travis-ci.com/github/meteor/meteor)
[![CircleCI Status](https://circleci.com/gh/meteor/meteor.svg?style=svg)](https://app.circleci.com/pipelines/github/meteor/meteor?branch=devel)
[![built with Meteor](https://img.shields.io/badge/Meteor-2.14-green?logo=meteor&logoColor=white)](https://meteor.com)
[![built with Meteor](https://img.shields.io/badge/Meteor-2.15-green?logo=meteor&logoColor=white)](https://meteor.com)
[![built with Meteor](https://img.shields.io/badge/Meteor-3.0_RC-yellow?logo=meteor&logoColor=white)](https://guide.meteor.com/3.0-migration)
</div>

View File

@@ -2,7 +2,7 @@
title: Docs
---
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0 is in progress, and it will run on the latest Node.js version. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0, currently in its Release Candidate version, runs on Node.js v20. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
<!-- XXX: note that this content is somewhat duplicated on the guide, and should be updated in parallel -->
<h2 id="what-is-meteor">What is Meteor?</h2>

View File

@@ -8,7 +8,7 @@ You need to install the Meteor command line tool to create, run, and manage your
<h3 id="prereqs-node">Node.js version</h3>
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0 is in progress, and it will run on the latest Node.js version. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0, currently in its Release Candidate version, runs on Node.js v20. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
- Node.js version >= 10 and <= 14 is required.
- We recommend you using [nvm](https://github.com/nvm-sh/nvm) or [Volta](https://volta.sh/) for managing Node.js versions.
@@ -30,7 +30,7 @@ You need to install the Meteor command line tool to create, run, and manage your
Install the latest official version of Meteor.js from your terminal by running one of the commands below. You can check our [changelog](https://docs.meteor.com/changelog.html) for the release notes.
> Run `node -v` to ensure you are using Node.js 14. Meteor 3.0 is in progress, and it will run on the latest Node.js version.
> Run `node -v` to ensure you are using Node.js 14. Meteor 3.0, currently in its Release Candidate version, runs on Node.js v20.
For Windows, Linux and OS X, you can run the following command:

View File

@@ -5,6 +5,7 @@ edit_branch: 'devel'
edit_path: 'guide'
content_root: 'source'
versions:
- '2.15'
- '2.14'
- '2.13'
- '2.12'

View File

@@ -3,19 +3,27 @@ title: Migrating to Meteor 3.0
description: How to migrate your application to Meteor 3.0.
---
> **This guide will be created as we get closer to the Meteor 3.0 beta release.** We are also evaluating new documentation platforms to improve our users' experience.
> This guide will be created as we approach the Meteor 3.0 release.
> We're in the process of moving our documentation to Vitepress,
> and updating the Meteor API docs for version 3.0. For the latest updates,
> visit https://v3-docs.meteor.com/.
## What's the status of version 3.0?
**Latest version:** `3.0-beta.0` <br/>
**Node.js version:** `20.9.0 LTS`
**Latest version:** `3.0-rc.0` <br/>
**Node.js version:** `20.11.1 LTS` <br />
**NPM version:** `10.2.4`
Meteor 3.0 is in alpha and not recommended for production. You can check the "[Release 3.0 Pull Request](https://github.com/meteor/meteor/pull/12359)" to see what is being changed.
Meteor 3.0, currently in its Release Candidate version, is approaching a recommendation for production use. You can check the "[Release 3.0 Pull Request](https://github.com/meteor/meteor/pull/12359)" to see what is being changed.
## How to prepare for version 3.0?
You can follow the guide "[How to migrate to Meteor Async in Meteor 2.x](/prepare-meteor-3.0.html)" to help you prepare your application for the new version by starting to use async methods.
## How to follow the progress on version 3?
The best way to follow the progress is by checking the "[What's left until an official Meteor 3.0?](https://github.com/meteor/meteor/discussions/12865)" discussion. We have also been sharing constant updates on [this topic](https://forums.meteor.com/t/fibers-public-roadmap-and-meteor-3-0/59627/84) in our forum.
## Frequently Asked Questions
### What is Fibers?
@@ -112,24 +120,28 @@ findOne is not available on the server. Please use findOneAsync instead.
You can create a new Meteor 3.0 project by running the command below:
```bash
meteor create my-new-project --release 3.0-beta.0
meteor create my-new-project --release 3.0-rc.0
```
or you can use
```bash
npx meteor@beta
```
it will install the latest beta version of Meteor, please be sure that you are using Node v20 or higher globally.
### How to update from version 2?
You can update your Meteor 2.x project by running the command below inside your project folder:
```bash
meteor update --release 3.0-beta.0
meteor update --release 3.0-rc.0
meteor reset #resets local DB and project to a fresh state
```
### How to follow the progress on version 3?
The best way to follow the progress is by checking the "[What's left until an official Meteor 3.0?](https://github.com/meteor/meteor/discussions/12865)" discussion. We have also been sharing constant updates on [this topic](https://forums.meteor.com/t/fibers-public-roadmap-and-meteor-3-0/59627/84) in our forum.
### When will Meteor 3.0 be ready?
We plan to release the beta version by the end of Q4 2023. An official version will depend a lot on user feedback, but we aim to release it by the end of Q1 2024.
The Release Candidate version has been released. The official version's release will heavily depend on user feedback, but our goal is to release it in Q2 2024.
### How do I migrate my package to be compatible with Meteor 3.0?
@@ -143,7 +155,7 @@ The migration will look like this:
```js
// in you package.js
Package.onUse((api) => {
api.versionsFrom(['1.10', '2.3', '3.0-beta.0']);
api.versionsFrom(['1.10', '2.3', '3.0-rc.0']);
// ^^^^^^^ for testing your package with meteor 3.0
api.versionsFrom(['1.10', '2.3', '3.0']);
@@ -247,11 +259,7 @@ If you encounter issues with any of them, let us know, please [open an issue](ht
This is the [list of all core packages](https://docs.meteor.com/packages/packages-listing.html).
We will bring these three new packages to the core and migrate them to Meteor 3.0:
- `percolate:migrations` - [GitHub](https://github.com/percolatestudio/meteor-migrations);
- `littledata:synced-cron` - [GitHub](https://github.com/percolatestudio/meteor-synced-cron);
- `matb33:collection-hooks` - [GitHub](https://github.com/Meteor-Community-Packages/meteor-collection-hooks);
Following the official release of Meteor 3.0, we plan to add new packages to the core and migrating them to Meteor 3.0.
For those packages that are not in the core but are maintained by the [community](https://github.com/Meteor-Community-Packages),
we hope that the community can work on them, but if for some reason that is not possible,

View File

@@ -3,7 +3,7 @@ title: Introduction
description: This is the guide for using Meteor, a full-stack JavaScript platform for developing modern web and mobile applications.
---
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0 is in progress, and it will run on the latest Node.js version. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
> Meteor 2.x runs on a deprecated Node.js version (14). Meteor 3.0, currently in its Release Candidate version, runs on Node.js v20. For more information, please consult our [migration guide](https://guide.meteor.com/3.0-migration.html).
<!-- XXX: note that this content is somewhat duplicated on the docs, and should be updated in parallel -->
<h2 id="what-is-meteor">What is Meteor?</h2>

View File

@@ -1,3 +1,6 @@
v1.2.8 - 2024-04-01
* Add new dependency `@meteorjs/crypto-browserify` to replace `crypto-browserify` as it had unsafe dependencies.
v1.2.1 - 2022-03-17
* Fix the missing dependencies.

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@
"name": "meteor-node-stubs",
"author": "Ben Newman <ben@meteor.com>",
"description": "Stub implementations of Node built-in modules, a la Browserify",
"version": "1.2.7",
"version": "1.2.9",
"main": "index.js",
"license": "MIT",
"homepage": "https://github.com/meteor/meteor/blob/devel/npm-packages/meteor-node-stubs/README.md",
@@ -11,12 +11,12 @@
"prepare": "node scripts/build-deps.js"
},
"dependencies": {
"@meteorjs/crypto-browserify": "^3.12.1",
"assert": "^2.1.0",
"browserify-zlib": "^0.2.0",
"buffer": "^5.7.1",
"console-browserify": "^1.2.0",
"constants-browserify": "^1.0.0",
"crypto-browserify": "^3.12.0",
"domain-browser": "^4.23.0",
"elliptic": "^6.5.4",
"events": "^3.3.0",
@@ -37,12 +37,12 @@
"vm-browserify": "^1.1.2"
},
"bundledDependencies": [
"@meteorjs/crypto-browserify",
"assert",
"browserify-zlib",
"buffer",
"console-browserify",
"constants-browserify",
"crypto-browserify",
"domain-browser",
"events",
"https-browserify",

View File

@@ -1,2 +1,2 @@
global.Buffer = global.Buffer || require("buffer").Buffer;
module.exports = require("crypto-browserify");
module.exports = require("@meteorjs/crypto-browserify");

View File

@@ -102,6 +102,7 @@ Tinytest.addAsync(
function (test, onComplete) {
var cb = Meteor.onMessage(function (msg, session) {
if (msg.method !== 'livedata_server_test_inner') return;
test.equal(msg.method, 'livedata_server_test_inner');
cb.stop();
onComplete();

View File

@@ -1,5 +1,5 @@
# appcache
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/appcache) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/appcache)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/appcache) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/appcache)
***
The `appcache` package, part of

View File

@@ -1,5 +1,5 @@
# code-prettify
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/code-prettify) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/code-prettify)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/code-prettify) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/code-prettify)
***
This internal Meteor package is now unnecessary and has been deprecated. To

View File

@@ -1,5 +1,5 @@
# deps
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deps) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deps)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/deps) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/deps)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# facebook
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/facebook) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/facebook)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/facebook) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/facebook)
***
** Deprecated, use facebook-oauth instead**

View File

@@ -1,5 +1,5 @@
# facts
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/facts) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/facts)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/facts) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/facts)
***
This is a legacy internal Meteor package. Use facts-ui or facts-base instead.

View File

@@ -1,5 +1,5 @@
# fastclick
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/fastclick) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/fastclick)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/fastclick) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/fastclick)
***
> **Warning:** As of late 2015 most mobile browsers - notably Chrome and Safari - no longer have a 300ms touch delay, so fastclick offers no benefit on newer browsers, and risks introducing [bugs](https://github.com/ftlabs/fastclick/issues) into your application. Consider carefully whether you really need to use it.

View File

@@ -1,5 +1,5 @@
# github
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/github) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/github)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/github) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/github)
***
**Deprecated, use github-oauth instead.**

View File

@@ -1,5 +1,5 @@
# google-oauth
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/google) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/google)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/google) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/google)
***
** Deprecated, use google-oauth instead**

View File

@@ -1,5 +1,5 @@
# handlebars
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/handlebars) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/handlebars)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/handlebars) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/handlebars)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,7 +1,7 @@
# jquery-waypoints
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/jquery-waypoints) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/jquery-waypoints)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/jquery-waypoints) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/jquery-waypoints)
***
This is a wrapper package for the JQuery Waypoints library. You can use it to add callbacks that fire when the user scrolls to certain elements on a page, for example to implement table of contents highlighting.
See the [JQuery Waypoints docs](http://imakewebthings.com/jquery-waypoints/) for more details.
See the [JQuery Waypoints docs](http://imakewebthings.com/jquery-waypoints/) for more details.

View File

@@ -1,5 +1,5 @@
# jshint
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/jshint) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/jshint)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/jshint) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/jshint)
***
JSHint for Meteor

View File

@@ -1,7 +1,7 @@
# jsparse
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/jsparse) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/jsparse)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/jsparse) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/jsparse)
***
This internal Meteor package is now unnecessary and has been deprecated. To
continue to use a working version of this package, please pin your package
version to 1.0.10 (e.g. meteor add jsparse@=1.0.10)
version to 1.0.10 (e.g. meteor add jsparse@=1.0.10)

View File

@@ -1,5 +1,5 @@
# livedata
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/livedata) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/livedata)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/livedata) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/livedata)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# meetup
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/meetup) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/meetup)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/meetup) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/meetup)
***
**Deprecated, use meetup-oauth instead.**

View File

@@ -1,5 +1,5 @@
# meteor-developer
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/meteor-developer) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/meteor-developer)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/meteor-developer) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/meteor-developer)
***
**Deprecated, use meteor-developer-oauth instead.**

View File

@@ -1,5 +1,5 @@
# meteor-platform
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/meteor-platform) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/meteor-platform)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/meteor-platform) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/meteor-platform)
***
This package used to be added to every app by `meteor create`, but is now deprecated in favor of `meteor-base` and a carefully chosen set of other packages.

View File

@@ -1,7 +1,7 @@
# meyerweb-reset
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/meyerweb-reset) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/meyerweb-reset)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/meyerweb-reset) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/meyerweb-reset)
***
This internal Meteor package is now unnecessary and has been deprecated. To
continue to use a working version of this package, please pin your package
version to 1.0.7 (e.g. meteor add meyerweb-reset@=1.0.7)
version to 1.0.7 (e.g. meteor add meyerweb-reset@=1.0.7)

View File

@@ -1,4 +1,4 @@
# npm-bcrypt
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/npm-bcrypt) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/npm-bcrypt)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/npm-bcrypt) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/npm-bcrypt)
***

View File

@@ -1,5 +1,5 @@
# preserve-inputs
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/preserve-inputs) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/preserve-inputs)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/preserve-inputs) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/preserve-inputs)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# showdown
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/showdown) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/showdown)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/showdown) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/showdown)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# spiderable
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/spiderable) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/spiderable)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/spiderable) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/spiderable)
***
`spiderable` is part of [Webapp](https://github.com/meteor/meteor/tree/master/packages/webapp). It's one possible way to allow web search engines to index a Meteor application. It uses the [AJAX Crawling specification](https://developers.google.com/webmasters/ajax-crawling/) published by Google to serve HTML to compatible spiders (Google, Bing, Yandex, and more).

View File

@@ -1,5 +1,5 @@
# srp
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/srp) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/srp)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/srp) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/srp)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# standard-app-packages
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/standard-app-packages) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/standard-app-packages)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/standard-app-packages) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/standard-app-packages)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# startup
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/startup) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/startup)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/startup) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/startup)
***
This is an internal Meteor package.
This is an internal Meteor package.

View File

@@ -1,5 +1,5 @@
# stylus
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/stylus) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/stylus)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/stylus) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/stylus)
***
**DEPRECATED:** This package is no longer supported/maintained as part of the

View File

@@ -1,5 +1,5 @@
# twitter
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/twitter) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/twitter)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/twitter) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/twitter)
***
** Deprecated, use twitter-oauth instead**

View File

@@ -1,5 +1,5 @@
# weibo
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/weibo) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/weibo)
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/deprecated/weibo) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/deprecated/weibo)
***
** Deprecated, use weibo-oauth instead**

View File

@@ -172,6 +172,9 @@ MongoConnection = function (url, options) {
// set it for replSet, it will be ignored if we're not using a replSet.
mongoOptions.maxPoolSize = options.maxPoolSize;
}
if (_.has(options, 'minPoolSize')) {
mongoOptions.minPoolSize = options.minPoolSize;
}
// Transform options like "tlsCAFileAsset": "filename.pem" into
// "tlsCAFile": "/<fullpath>/filename.pem"
@@ -788,7 +791,7 @@ MongoConnection.prototype.upsert = function (collectionName, selector, mod,
var self = this;
if (typeof options === "function" && ! callback) {
callback = options;
options = {};
@@ -844,7 +847,7 @@ MongoConnection.prototype.createIndexAsync = function (collectionName, index,
MongoConnection.prototype.createIndex = function (collectionName, index,
options) {
var self = this;
return Future.fromPromise(self.createIndexAsync(collectionName, index, options));
};
@@ -866,7 +869,7 @@ MongoConnection.prototype._ensureIndex = MongoConnection.prototype.createIndex;
MongoConnection.prototype._dropIndex = function (collectionName, index) {
var self = this;
// This function is only used by test code, not within a method, so we don't
// interact with the write fence.
var collection = self.rawCollection(collectionName);

View File

@@ -206,12 +206,12 @@ Object.assign(OplogHandle.prototype, {
// The tail connection will only ever be running a single tail command, so
// it only needs to make one underlying TCP connection.
self._oplogTailConnection = new MongoConnection(
self._oplogUrl, {maxPoolSize: 1});
self._oplogUrl, {maxPoolSize: 1, minPoolSize: 1});
// XXX better docs, but: it's to get monotonic results
// XXX is it safe to say "if there's an in flight query, just use its
// results"? I don't think so but should consider that
self._oplogLastEntryConnection = new MongoConnection(
self._oplogUrl, {maxPoolSize: 1});
self._oplogUrl, {maxPoolSize: 1, minPoolSize: 1});
// Now, make sure that there actually is a repl set here. If not, oplog
// tailing won't ever find anything!

View File

@@ -9,7 +9,7 @@
Package.describe({
summary: "Adaptor for using MongoDB and Minimongo over DDP",
version: '1.16.8',
version: '1.16.9',
});
Npm.depends({

View File

@@ -5,12 +5,29 @@ let testNumber = 0;
async function runNextUrl(browser) {
const page = await browser.newPage();
page.on('console', msg => {
page.on('console', async msg => {
// this is a way to make sure the travis does not timeout
// if the test is running for too long without any output to the console (10 minutes)
if (msg._text !== undefined) console.log(msg._text);
else console.log(`Test number: ${ testNumber }`);
testNumber++;
else {
testNumber++;
const currentClientTest =
await page.evaluate(() => __Tinytest._getCurrentRunningTestOnClient());
if (currentClientTest !== '') {
console.log(`Currently running on the client test: ${ currentClientTest }`)
return;
}
// If we get here is because we have not yet started the test on the client
const currentServerTest =
await page.evaluate(async () => await __Tinytest._getCurrentRunningTestOnServer());
if (currentServerTest !== '') {
console.log(`Currently running on the server test: ${ currentServerTest }`);
return;
}
// we were not able to find the name of the test, this is a way to make sure the test is still running
console.log(`Test number: ${ testNumber }`);
}
});
if (!process.env.URL) {
@@ -23,10 +40,6 @@ async function runNextUrl(browser) {
async function poll() {
if (await isDone(page)) {
let failCount = await getFailCount(page);
console.log(`
The number of tests from Test number may be different because
of the way the test is written. causing the test to fail or
to run more than once. in the console. Test number total: ${ testNumber }`);
console.log(`Tests complete with ${ failCount } failures`);
console.log(`Tests complete with ${ await getPassCount(page) } passes`);
if (failCount > 0) {

View File

@@ -531,7 +531,7 @@ export class TestRun {
_runTest(test, onComplete, stop_at_offset) {
var startTime = (+new Date);
Tinytest._currentRunningTestName = test.name;
test.run(event => {
/* onEvent */
// Ignore result callbacks if the test has already been reported
@@ -671,6 +671,7 @@ export class TestRun {
/******************************************************************************/
export const Tinytest = {};
globalThis.__Tinytest = Tinytest;
Tinytest.addAsync = function (name, func, options) {
TestManager.addCase(new TestCase(name, func), options);
@@ -701,6 +702,22 @@ Tinytest._runTests = function (onReport, onComplete, pathPrefix) {
testRun.run(onComplete);
};
Tinytest._currentRunningTestName = ""
Meteor.methods({
'tinytest/getCurrentRunningTestName'() {
return Tinytest._currentRunningTestName;
}
})
Tinytest._getCurrentRunningTestOnServer = function () {
return Meteor.callAsync('tinytest/getCurrentRunningTestName');
}
Tinytest._getCurrentRunningTestOnClient = function () {
return Tinytest._currentRunningTestName;
}
// Run just one test case, and stop the debugger at a particular
// error, all as indicated by 'cookie', which will have come from a
// failure event output by _runTests.

View File

@@ -1,7 +1,7 @@
Package.describe({
summary: "Collection of small helpers: _.map, _.each, ...",
version: '1.6.0',
version: '1.6.1',
});
Npm.depends({

View File

@@ -529,7 +529,7 @@
var rest = slice.call(arguments, 1);
return _.filter(_.uniq(array), function(item) {
return _.every(rest, function(other) {
return _.contains(other, item) >= 0;
return _.contains(other, item);
});
});
};