Skip to content

Commit

Permalink
Merge pull request #6 from 9Morello/devel
Browse files Browse the repository at this point in the history
make it up to date with upstream
  • Loading branch information
matheusccastroo authored Sep 20, 2024
2 parents 4fabb29 + 9c4a339 commit b3175be
Show file tree
Hide file tree
Showing 52 changed files with 929 additions and 500 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ run_save_node_bin: &run_save_node_bin
build_machine_environment: &build_machine_environment
# Specify that we want an actual machine (ala Circle 1.0), not a Docker image.
docker:
- image: meteor/circleci:2024.09.2-android-34-node-20
- image: meteor/circleci:2024.09.11-android-34-node-20
resource_class: large
environment:
# This multiplier scales the waitSecs for selftests.
Expand Down Expand Up @@ -345,6 +345,9 @@ jobs:
if [ -f ./tmp/test-groups/2.txt ]; then TEST_GROUP=$(<./tmp/test-groups/2.txt); elif [ -f ./tmp/test-groups/0.txt ]; then TEST_GROUP=XXXXX; else TEST_GROUP='^co[n-z]'; fi
echo $TEST_GROUP;
eval $PRE_TEST_COMMANDS;
export PATH="/home/circleci/.sdkman/candidates/gradle/8.7/bin:${PATH}"
java --version
gradle --version
./meteor self-test \
"$TEST_GROUP" \
--retries ${METEOR_SELF_TEST_RETRIES} \
Expand Down Expand Up @@ -750,7 +753,7 @@ jobs:
Docs:
docker:
# This Node version should match that in the meteor/docs CircleCI config.
- image: meteor/circleci:2024.09.2-android-34-node-20
- image: meteor/circleci:2024.09.11-android-34-node-20
resource_class: large
environment:
CHECKOUT_METEOR_DOCS: /home/circleci/test_docs
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[![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-3.0.2-green?logo=meteor&logoColor=white)](https://meteor.com)
[![built with Meteor](https://img.shields.io/badge/Meteor-3.0.3-green?logo=meteor&logoColor=white)](https://meteor.com)
![node-current](https://img.shields.io/node/v/meteor)
![Discord](https://img.shields.io/discord/1247973371040239676)
![Twitter Follow](https://img.shields.io/twitter/follow/meteorjs?style=social)
Expand Down Expand Up @@ -86,7 +86,7 @@ meteor

* Deploy on [Meteor Cloud](https://www.meteor.com/cloud)
* Discuss on [Forums](https://forums.meteor.com/)
* Join the Meteor community Slack by clicking this [invite link](https://join.slack.com/t/meteor-community/shared_invite/enQtODA0NTU2Nzk5MTA3LWY5NGMxMWRjZDgzYWMyMTEyYTQ3MTcwZmU2YjM5MTY3MjJkZjQ0NWRjOGZlYmIxZjFlYTA5Mjg4OTk3ODRiOTc).
* Join the Meteor Discord by clicking this [invite link](https://discord.gg/hZkTCaVjmT).
* Announcement list. Subscribe in the [footer](https://www.meteor.com/).


Expand Down
18 changes: 0 additions & 18 deletions docs/scripts/kapa.js

This file was deleted.

35 changes: 35 additions & 0 deletions docs/scripts/legacy-warning.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* global hexo */

hexo.extend.filter.register('after_render:html', function (str) {
const warningMessage = `
<div class="warning-banner">
<p>
⚠️ You're browsing the documentation for an old version of Meteor.js.
Check out the <a href="https://docs.meteor.com" target="_blank">v3 docs</a> and <a href="https://v3-migration-docs.meteor.com/" target="_blank">migration guide</a>.
</p>
</div>
`;

const css = `
<style>
.warning-banner {
text-align: center;
background-color: #fff3cd;
border: 1px solid #ffeeba;
color: #856404;
margin-bottom: 20px;
}
.warning-banner a {
color: #0056b3;
text-decoration: underline;
}
.warning-banner a:hover {
color: #003d82;
}
</style>
`;

const injectedContent = css + warningMessage;

return str.replace(/<div class="content">/, `<div class="content" data-injected>${injectedContent}`);
});
2 changes: 1 addition & 1 deletion meteor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

BUNDLE_VERSION=20.17.0.3
BUNDLE_VERSION=20.17.0.6


# OS Check. Put here because here is where we download the precompiled
Expand Down
1 change: 1 addition & 0 deletions npm-packages/meteor-installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Set the `https_proxy` or `HTTPS_PROXY` environment variable to a valid proxy URL

| NPM Package | Meteor Official Release |
|-------------|-------------------------|
| 3.0.3 | 3.0.3 |
| 3.0.2 | 3.0.2 |
| 3.0.1 | 3.0.1 |
| 3.0.0 | 3.0 |
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const os = require('os');
const path = require('path');

const METEOR_LATEST_VERSION = '3.0.2';
const METEOR_LATEST_VERSION = '3.0.3';
const sudoUser = process.env.SUDO_USER || '';
function isRoot() {
return process.getuid && process.getuid() === 0;
Expand Down
4 changes: 2 additions & 2 deletions npm-packages/meteor-installer/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Seven = require('node-7z');
const { resolve, dirname } = require('path');
const tar = require('tar');

const { isMac } = require('./config.js');
const { isLinux } = require('./config.js');

function extractWith7Zip(tarPath, destination, onProgress) {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -49,7 +49,7 @@ function createSymlinks(symlinks, baseDir) {
function extractWithNativeTar(tarPath, destination) {
child_process.execSync(

Check warning on line 50 in npm-packages/meteor-installer/extract.js

View workflow job for this annotation

GitHub Actions / check-code-style

Identifier 'child_process' is not in camel case
`tar -xf "${tarPath}" ${
!isMac() ? `--checkpoint-action=ttyout="#%u: %T \r"` : ``
isLinux() ? `--checkpoint-action=ttyout="#%u: %T \r"` : ``
} -C "${destination}"`,
{
cwd: process.cwd(),
Expand Down
15 changes: 13 additions & 2 deletions npm-packages/meteor-installer/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,19 @@ function download() {
}

if (isWindows()) {
decompress();
return;
const hasNativeTar = fs.existsSync(
path.resolve('C:/Windows/System32', 'tar.exe'),
);
if (hasNativeTar) {
// tar works exactly the same as it's bsdtar counterpart on UNIX so continue
console.log(
'Native binary for tar is available on this version of Windows.',
);
console.log('Switching to the native tar.exe binary on Windows.');
} else {
decompress();

Check warning on line 224 in npm-packages/meteor-installer/install.js

View workflow job for this annotation

GitHub Actions / check-code-style

'decompress' was used before it was defined
return;
}
}

fs.writeFileSync(startedPath, 'Meteor install started');
Expand Down
4 changes: 2 additions & 2 deletions npm-packages/meteor-installer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meteor",
"version": "3.0.2",
"version": "3.0.3",
"description": "Install Meteor",
"main": "install.js",
"scripts": {
Expand Down
30 changes: 15 additions & 15 deletions packages/accounts-base/accounts-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export namespace Accounts {
profile?: Meteor.UserProfile | undefined;
},
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): string;
): Promise<string>;

function createUserAsync(
options: {
Expand Down Expand Up @@ -113,23 +113,23 @@ export namespace Accounts {
oldPassword: string,
newPassword: string,
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

function forgotPassword(
options: { email?: string | undefined },
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

function resetPassword(
token: string,
newPassword: string,
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

function verifyEmail(
token: string,
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

function onEmailVerificationLink(callback: Function): void;

Expand All @@ -143,11 +143,11 @@ export namespace Accounts {

function logout(
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

function logoutOtherClients(
callback?: (error?: Error | Meteor.Error | Meteor.TypedError) => void
): void;
): Promise<void>;

type PasswordSignupField = 'USERNAME_AND_EMAIL' | 'USERNAME_AND_OPTIONAL_EMAIL' | 'USERNAME_ONLY' | 'EMAIL_ONLY';
type PasswordlessSignupField = 'USERNAME_AND_EMAIL' | 'EMAIL_ONLY';
Expand Down Expand Up @@ -179,9 +179,9 @@ export interface EmailTemplates {
export namespace Accounts {
var emailTemplates: EmailTemplates;

function addEmail(userId: string, newEmail: string, verified?: boolean): void;
function addEmailAsync(userId: string, newEmail: string, verified?: boolean): Promise<void>;

function removeEmail(userId: string, email: string): void;
function removeEmail(userId: string, email: string): Promise<void>;

function onCreateUser(
func: (options: { profile?: {} | undefined }, user: Meteor.User) => void
Expand All @@ -190,35 +190,35 @@ export namespace Accounts {
function findUserByEmail(
email: string,
options?: { fields?: Mongo.FieldSpecifier | undefined }
): Meteor.User | null | undefined;
): Promise<Meteor.User | null | undefined>;

function findUserByUsername(
username: string,
options?: { fields?: Mongo.FieldSpecifier | undefined }
): Meteor.User | null | undefined;
): Promise<Meteor.User | null | undefined>;

function sendEnrollmentEmail(
userId: string,
email?: string,
extraTokenData?: Record<string, unknown>,
extraParams?: Record<string, unknown>
): void;
): Promise<void>;

function sendResetPasswordEmail(
userId: string,
email?: string,
extraTokenData?: Record<string, unknown>,
extraParams?: Record<string, unknown>
): void;
): Promise<void>;

function sendVerificationEmail(
userId: string,
email?: string,
extraTokenData?: Record<string, unknown>,
extraParams?: Record<string, unknown>
): void;
): Promise<void>;

function setUsername(userId: string, newUsername: string): void;
function setUsername(userId: string, newUsername: string): Promise<void>;

function setPasswordAsync(
userId: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts-base/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "A user account system",
version: "3.0.1",
version: "3.0.2",
});

Package.onUse((api) => {
Expand Down
12 changes: 6 additions & 6 deletions packages/accounts-password/.npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/accounts-password/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Package.describe({
// 2.2.x in the future. The version was also bumped to 2.0.0 temporarily
// during the Meteor 1.5.1 release process, so versions 2.0.0-beta.2
// through -beta.5 and -rc.0 have already been published.
version: "3.0.1",
version: "3.0.2",
});

Npm.depends({
Expand Down
2 changes: 1 addition & 1 deletion packages/email/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: "Send email messages",
version: "3.0.100",
version: "3.1.0",
});

Npm.depends({
Expand Down
2 changes: 1 addition & 1 deletion packages/meteor-tool/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: 'The Meteor command-line tool',
version: '3.0.2',
version: '3.0.3',
});

Package.includeTool();
Loading

0 comments on commit b3175be

Please sign in to comment.