Skip to content

Commit 6893529

Browse files
authored
Merge branch 'devel' into patch-2
2 parents 69237ff + 910b8d0 commit 6893529

File tree

183 files changed

+13884
-4321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+13884
-4321
lines changed

.github/ISSUE_TEMPLATE.md

-2
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
<!-- Read a guide on [opening issues](https://opensource.guide/how-to-contribute/#opening-an-issue) -->
10+
**Describe the bug**
11+
12+
A clear and concise description of what the bug is.
13+
14+
**To Reproduce**
15+
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Expected behavior**
23+
24+
A clear and concise description of what you expected to happen.
25+
26+
**Screenshots**
27+
28+
If applicable, add screenshots to help explain your problem. Please avoid
29+
screenshots of code or error outputs and use [formatted code via markdown](https://guides.github.com/features/mastering-markdown/)
30+
instead.
31+
32+
**Versions (please complete the following information):**
33+
- Meteor version: [e.g. 1.8.2] <!-- see .meteor/release -->
34+
- Browser: [e.g. firefox, chrome, safari]
35+
- Package version: [e.g. 1.0.0] <!-- see .meteor/versions -->
36+
37+
38+
**Additional context**
39+
40+
Add any other context about the problem here.
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
<!-- Read a guide on [opening issues](https://opensource.guide/how-to-contribute/#opening-an-issue) -->
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.

.github/workflows/comment-issue.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Add immediate comment on new issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
createComment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create Comment
12+
uses: peter-evans/create-or-update-comment@v1.4.2
13+
with:
14+
issue-number: ${{ github.event.issue.number }}
15+
body: |
16+
Thank you for submitting this issue!
17+
18+
We, the Members of Meteor Community Packages take every issue seriously.
19+
Our goal is to provide long-term lifecycles for packages and keep up
20+
with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.
21+
22+
However, we contribute to these packages mostly in our free time.
23+
Therefore, we can't guarantee you issues to be solved within certain time.
24+
25+
If you think this issue is trivial to solve, don't hesitate to submit
26+
a pull request, too! We will accompany you in the process with reviews and hints
27+
on how to get development set up.
28+
29+
Please also consider sponsoring the maintainers of the package.
30+
If you don't know who is currently maintaining this package, just leave a comment
31+
and we'll let you know

.github/workflows/testsuite.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Test suite
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- develop
11+
pull_request:
12+
13+
jobs:
14+
tests:
15+
name: tests
16+
runs-on: ubuntu-latest
17+
# needs: [lintcode,lintstyle,lintdocs] # we could add prior jobs for linting, if desired
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Setup meteor
23+
uses: meteorengineer/setup-meteor@v1
24+
with:
25+
meteor-release: '1.10.1'
26+
27+
- name: cache dependencies
28+
uses: actions/cache@v1
29+
with:
30+
path: ~/.npm
31+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32+
restore-keys: |
33+
${{ runner.os }}-node-
34+
35+
- run: cd testapp && meteor npm ci
36+
- run: cd testapp && meteor npm run lint
37+
- run: cd testapp && meteor npm run test

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.DS_Store
22
.build*
33
.npm*
4-
.meteor*
54
smart.lock
65
nbproject*
76
/packages/
8-
.idea/
7+
.idea
8+
.vscode
9+
node_modules/
10+
packages/

.jshintrc

+67-78
Original file line numberDiff line numberDiff line change
@@ -7,89 +7,83 @@
77
// Source https://github.com/raix/Meteor-jshintrc
88
//
99
// See http://jshint.com/docs/ for more details
10-
11-
"maxerr" : 50, // {int} Maximum error before stopping
12-
10+
"maxerr": 50, // {int} Maximum error before stopping
1311
// Enforcing
14-
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
15-
"camelcase" : false, // false: Identifiers do not need to be in camelCase. We would like to enforce this except for when interacting with our api objects which use snakeCase properties.
16-
"curly" : false, // false: Do not require {} for every new block or scope
17-
"eqeqeq" : true, // true: Require triple equals (===) for comparison
18-
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
19-
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
20-
"indent" : 2, // {int} Number of spaces to use for indentation
21-
"latedef" : false, // true: Require variables/functions to be defined before being used
22-
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
23-
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
24-
"noempty" : true, // true: Prohibit use of empty blocks
25-
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
26-
"plusplus" : false, // true: Prohibit use of `++` & `--`
27-
"quotmark" : false, // Quotation mark consistency:
12+
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
13+
"camelcase": false, // false: Identifiers do not need to be in camelCase. We would like to enforce this except for when interacting with our api objects which use snakeCase properties.
14+
"curly": false, // false: Do not require {} for every new block or scope
15+
"eqeqeq": true, // true: Require triple equals (===) for comparison
16+
"forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty()
17+
"immed": false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
18+
"indent": 2, // {int} Number of spaces to use for indentation
19+
"latedef": false, // true: Require variables/functions to be defined before being used
20+
"newcap": false, // true: Require capitalization of all constructor functions e.g. `new F()`
21+
"noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
22+
"noempty": true, // true: Prohibit use of empty blocks
23+
"nonew": false, // true: Prohibit use of constructors for side-effects (without assignment)
24+
"plusplus": false, // true: Prohibit use of `++` & `--`
25+
"quotmark": false, // Quotation mark consistency:
2826
// false : do nothing (default)
2927
// true : ensure whatever is used is consistent
3028
// "single" : require single quotes
3129
// "double" : require double quotes
32-
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
33-
"unused" : true, // true: Require all defined variables be used
34-
"strict" : false, // false: Do not require all functions to be run in ES5 Strict Mode
35-
"trailing" : true, // true: Prohibit trailing whitespaces
36-
"maxparams" : false, // {int} Max number of formal params allowed per function
37-
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
38-
"maxstatements" : false, // {int} Max number statements per function
39-
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
40-
"maxlen" : 250, // {int} Max number of characters per line
41-
30+
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
31+
"unused": true, // true: Require all defined variables be used
32+
"strict": false, // false: Do not require all functions to be run in ES5 Strict Mode
33+
"trailing": true, // true: Prohibit trailing whitespaces
34+
"maxparams": false, // {int} Max number of formal params allowed per function
35+
"maxdepth": false, // {int} Max depth of nested blocks (within functions)
36+
"maxstatements": false, // {int} Max number statements per function
37+
"maxcomplexity": false, // {int} Max cyclomatic complexity per function
38+
"maxlen": 250, // {int} Max number of characters per line
4239
// Relaxing
43-
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
44-
"boss" : false, // true: Tolerate assignments where comparisons would be expected
45-
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
46-
"eqnull" : false, // true: Tolerate use of `== null`
47-
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
48-
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
49-
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
40+
"asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
41+
"boss": false, // true: Tolerate assignments where comparisons would be expected
42+
"debug": false, // true: Allow debugger statements e.g. browser breakpoints.
43+
"eqnull": false, // true: Tolerate use of `== null`
44+
"es5": false, // true: Allow ES5 syntax (ex: getters and setters)
45+
"esnext": false, // true: Allow ES.next (ES6) syntax (ex: `const`)
46+
"moz": false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
5047
// (ex: `for each`, multiple try/catch, function expression…)
51-
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
52-
"expr" : true, // true: Tolerate `ExpressionStatement` as Programs
53-
"funcscope" : false, // true: Tolerate defining variables inside control statements"
54-
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
55-
"iterator" : false, // true: Tolerate using the `__iterator__` property
56-
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
57-
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
58-
"laxcomma" : false, // true: Tolerate comma-first style coding
59-
"loopfunc" : false, // true: Tolerate functions being defined in loops
60-
"multistr" : false, // true: Tolerate multi-line strings
61-
"proto" : false, // true: Tolerate using the `__proto__` property
62-
"scripturl" : false, // true: Tolerate script-targeted URLs
63-
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
64-
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
65-
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
66-
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
67-
"validthis" : false, // true: Tolerate using this in a non-constructor function
68-
48+
"evil": false, // true: Tolerate use of `eval` and `new Function()`
49+
"expr": true, // true: Tolerate `ExpressionStatement` as Programs
50+
"funcscope": false, // true: Tolerate defining variables inside control statements"
51+
"globalstrict": true, // true: Allow global "use strict" (also enables 'strict')
52+
"iterator": false, // true: Tolerate using the `__iterator__` property
53+
"lastsemic": false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
54+
"laxbreak": false, // true: Tolerate possibly unsafe line breakings
55+
"laxcomma": false, // true: Tolerate comma-first style coding
56+
"loopfunc": false, // true: Tolerate functions being defined in loops
57+
"multistr": false, // true: Tolerate multi-line strings
58+
"proto": false, // true: Tolerate using the `__proto__` property
59+
"scripturl": false, // true: Tolerate script-targeted URLs
60+
"smarttabs": false, // true: Tolerate mixed tabs/spaces when used for alignment
61+
"shadow": false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
62+
"sub": false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
63+
"supernew": false, // true: Tolerate `new function () { ... };` and `new Object;`
64+
"validthis": false, // true: Tolerate using this in a non-constructor function
6965
// Environments
70-
"browser" : true, // Web Browser (window, document, etc)
71-
"couch" : false, // CouchDB
72-
"devel" : true, // Development/debugging (alert, confirm, etc)
73-
"dojo" : false, // Dojo Toolkit
74-
"jquery" : false, // jQuery
75-
"mootools" : false, // MooTools
76-
"node" : false, // Node.js
77-
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
78-
"prototypejs" : false, // Prototype and Scriptaculous
79-
"rhino" : false, // Rhino
80-
"worker" : false, // Web Workers
81-
"wsh" : false, // Windows Scripting Host
82-
"yui" : false, // Yahoo User Interface
66+
"browser": true, // Web Browser (window, document, etc)
67+
"couch": false, // CouchDB
68+
"devel": true, // Development/debugging (alert, confirm, etc)
69+
"dojo": false, // Dojo Toolkit
70+
"jquery": false, // jQuery
71+
"mootools": false, // MooTools
72+
"node": false, // Node.js
73+
"nonstandard": false, // Widely adopted globals (escape, unescape, etc)
74+
"prototypejs": false, // Prototype and Scriptaculous
75+
"rhino": false, // Rhino
76+
"worker": false, // Web Workers
77+
"wsh": false, // Windows Scripting Host
78+
"yui": false, // Yahoo User Interface
8379
//"meteor" : false, // Meteor.js
84-
8580
// Legacy
86-
"nomen" : false, // true: Prohibit dangling `_` in variables
87-
"onevar" : false, // true: Allow only one `var` statement per function
88-
"passfail" : false, // true: Stop on first error
89-
"white" : false, // true: Check against strict whitespace and indentation rules
90-
81+
"nomen": false, // true: Prohibit dangling `_` in variables
82+
"onevar": false, // true: Allow only one `var` statement per function
83+
"passfail": false, // true: Stop on first error
84+
"white": false, // true: Check against strict whitespace and indentation rules
9185
// Custom globals, from http://docs.meteor.com, in the order they appear there
92-
"globals" : {
86+
"globals": {
9387
"Meteor": false,
9488
"DDP": false,
9589
"Mongo": false, //Meteor.Collection renamed to Mongo.Collection
@@ -111,20 +105,15 @@
111105
"App": false, //mobile-config.js
112106
"cordova": false,
113107
"Cordova": false,
114-
115108
// globals useful when creating Meteor packages
116109
"Npm": false,
117110
"Tinytest": false,
118-
119111
// common Meteor packages
120-
"_": false, // Underscore.js
121112
"$": false,
122-
123113
// Imports
124114
"moment": false,
125-
126115
// This package
127116
"AutoForm": true,
128117
"Utility": true
129118
}
130-
}
119+
}

.meteorignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/testapp
2+
/tests
3+
**/*tests.js

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build
2+
coverage
3+
testdummy
4+
*.md
5+
*.json
6+
.github
7+
.jshintrc

.prettierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.travis.yml

-5
This file was deleted.

0 commit comments

Comments
 (0)