Skip to content

Commit 8e4ba12

Browse files
committed
docs: updated for release 1.13.1
1 parent 345f073 commit 8e4ba12

File tree

3 files changed

+137
-34
lines changed

3 files changed

+137
-34
lines changed

CHANGELOG.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
55
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
66

7+
- [1.13.1](#1131)
78
- [1.7.3 and higher](#173-and-higher)
89
- [1.7.2](#172)
910
- [1.7.1](#171)
@@ -50,13 +51,17 @@
5051

5152
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
5253

53-
## 2.0.0
54+
## 1.13.1
5455

55-
- back in maintenance
56-
- moved all code from npm `[email protected]` to this repo
56+
- back under community maintenance!
57+
- 100% compatibility with Meteor, used the last Meteor-compatible version from NPM
58+
- moved all code from npm [email protected] to this repo
59+
- NPM link: https://www.npmjs.com/package/simpl-schema/v/1.13.1
60+
- GitHub commit: [7f3ea1c2a185199e676726b6e4e82ab5fa722e97](https://github.com/longshotlabs/simpl-schema/tree/7f3ea1c2a185199e676726b6e4e82ab5fa722e97)
5761
- updated all tests to use `meteortesting:mocha` + chai
58-
- prepare for Meteor 3.0 compatibility
59-
- update CI
62+
- added coverage reporting to the tests!
63+
- prepare for Meteor 3.0 compatibility migration (will be done in the next version)
64+
- updated CI
6065
- publish as Meteor package
6166

6267
## 1.7.3 and higher

CONTRIBUTING.md

Lines changed: 117 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1-
# Contribute
1+
# Contributing to aldeed:simple-schema
2+
3+
> Any contribution to this repository is highly appreciated!
4+
25

36
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
47
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
58
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
69

710
- [Introduction](#introduction)
8-
- [Your First Contribution](#your-first-contribution)
9-
- [Submitting code](#submitting-code)
11+
- [Setup development env](#setup-development-env)
12+
- [Clone project and create a new branch to work on](#clone-project-and-create-a-new-branch-to-work-on)
13+
- [Initialize test app](#initialize-test-app)
14+
- [Development toolchain](#development-toolchain)
15+
- [Linter](#linter)
16+
- [Tests](#tests)
17+
- [Once](#once)
18+
- [Watch](#watch)
19+
- [Coverage](#coverage)
20+
- [Open a pull request](#open-a-pull-request)
1021
- [Code review process](#code-review-process)
1122
- [Questions](#questions)
1223
- [Credits](#credits)
13-
- [Contributors](#contributors)
14-
- [Sponsors](#sponsors)
1524

1625
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1726

@@ -25,34 +34,122 @@ We welcome any type of contribution, not only code. You can help with
2534
- **Marketing**: writing blog posts, howto's, printing stickers, ...
2635
- **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, ...
2736
- **Code**: take a look at the [open issues](issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. It helps us triage them.
28-
- **Money**: we [welcome financial contributions](https://github.com/sponsors/aldeed).
37+
- **Money**: we [welcome financial contributions](https://github.com/https://github.com/Meteor-Community-Packages).
38+
39+
## Setup development env
40+
41+
### Clone project and create a new branch to work on
42+
43+
First, clone this repository and create a new branch to work on.
44+
Branch names should follow the GitFlow standard and start with a descriptive prefix of their intended outcome, for example:
45+
46+
- `feature/` for features
47+
- `fix/` for general fixes
48+
49+
Then the name of the branch should describe the purpose of the branch and potentially reference the issue number it is solving.
50+
51+
```shell
52+
$ git clone [email protected]:Meteor-Community-Packages/meteor-simple-schema.git
53+
$ cd meteor-simple-schema
54+
$ git checkout -b fix/some-issue
55+
```
56+
57+
### Initialize test app
58+
59+
We use a proxy Meteor application to run our tests and handle coverage etc.
60+
This app contains several npm scripts to provide the complete toolchain that is required
61+
for your development and testing needs.
62+
63+
The setup is very easy. Go into the `tests` directory, install dependencies and link
64+
the package:
65+
66+
```shell
67+
$ cd tests
68+
$ meteor npm install
69+
$ meteor npm run setup # this is important for the tools to work!
70+
```
71+
72+
## Development toolchain
73+
74+
The `tests` comes with some builtin scripts you can utilize during your development.
75+
They will also be picked up by our CI during pull requests.
76+
Therefore, it's a good call for you, that if they pass or fail, the CI will do so, too.
77+
78+
**Note: all tools require the npm `setup` script has been executed at least once!**
79+
80+
### Linter
81+
82+
We use `standard` as our linter. You can run either the linter or use it's autofix feature for
83+
the most common issues:
2984

30-
## Your First Contribution
85+
```shell
86+
# in tests
87+
$ meteor npm run lint # show only outputs
88+
$ meteor npm run lint:fix # with fixes + outputs
89+
```
3190

32-
Working on your first Pull Request? You can learn how from this *free* series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
91+
### Tests
3392

34-
## Submitting code
93+
We provide three forms of tests: once, watch, coverage
94+
95+
#### Once
96+
97+
Simply runs the test suite once, without coverage collection:
98+
99+
```shell
100+
$ meteor npm run test
101+
```
102+
103+
#### Watch
104+
105+
Runs the test suite in watch mode, good to use during active development, where your changes
106+
are picked up automatically to re-run the tests:
107+
108+
```shell
109+
$ meteor npm run test:watch
110+
```
111+
112+
#### Coverage
113+
114+
Runs the test suite once, including coverage report generation.
115+
Generates an html and json report output.
116+
117+
```shell
118+
$ meteor npm run test:coverage
119+
$ meteor npm run report # summary output in console
120+
```
121+
122+
If you want to watch the HTML output to find (un)covered lines, open
123+
the file at `tests/.coverage/index.html` in your browser.
124+
125+
## Open a pull request
126+
127+
If you open a pull request, please make sure the following requirements are met:
128+
129+
- the `lint` script is passing
130+
- the `test` script is passing
131+
- your contribution is on point and solves one issue (not multiple)
132+
- your commit messages are descriptive and informative
133+
- complex changes are documented in the code with comments or jsDoc-compatible documentation
134+
135+
Please understand, that there will be a review process and your contribution
136+
might require changes before being merged. This is entirely to ensure quality and is
137+
never used as a personal offense.
35138

36-
Any code change should be submitted as a pull request. The description should explain what the code does and give steps to execute it. The pull request should also contain tests.
37139

38140
## Code review process
39141

40-
The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests in smaller chunks that are easier to review and merge.
142+
The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests in
143+
smaller chunks that are easier to review and merge.
41144
It is also always helpful to have some context for your pull request. What was the purpose? Why does it matter to you?
42145

43146
## Questions
44147

45-
If you have any questions, create an [issue](issue) (protip: do a quick search first to see if someone else didn't ask the same question before!).
148+
If you have any questions, [create an issue](https://github.com/Meteor-Community-Packages/meteor-simple-schema/issues)
149+
(protip: do a quick search first to see if someone else didn't ask the same question before!).
46150

47151
## Credits
48152

49-
### Contributors
153+
Thank you to all the people who have already contributed to this project:
50154

51-
Thank you to all the people who have already contributed to simpl-schema!
52155
<a href="graphs/contributors"><img src="https://opencollective.com/simple-schema-js/contributors.svg?width=890" /></a>
53-
54-
### Sponsors
55-
56-
You can support this project by [becoming a sponsor](https://github.com/sponsors/aldeed).
57-
58-
<!-- This `CONTRIBUTING.md` is based on @nayafia's template https://github.com/nayafia/contributing-template -->

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
66
![GitHub License](https://img.shields.io/github/license/Meteor-Community-Packages/meteor-simple-schema)
77

8+
## Attention! 🧐
89
> This package is back under maintenance by the Meteor Community Packages group 🚀
10+
> Consider this a hard-fork to ensure a future-proof maintenance with focus on
11+
> Meteor-Compatibility (Meteor 2.x; 3.x and beyond)! ☄️
912
13+
## About this package
1014
SimpleSchema validates JavaScript objects to ensure they match a schema. It can also clean the objects to automatically convert types, remove unsupported properties, and add automatic values such that the object is then more likely to pass validation.
1115

1216
There are a lot of similar packages for validating objects. These are some of the features of this package that might be good reasons to choose this one over another:
@@ -20,11 +24,10 @@ There are a lot of similar packages for validating objects. These are some of th
2024

2125
There are also reasons not to choose this package. Because of all it does, this package is more complex than (but still "simple" :) ) and slower than some other packages. Based on your needs, you should decide whether these tradeoffs are acceptable. One faster but less powerful option is [simplecheck](https://www.npmjs.com/package/simplecheck).
2226

27+
## Table of Contents
2328
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
2429
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
2530

26-
**Table of Contents** _generated with [DocToc](https://github.com/thlorenz/doctoc)_
27-
2831
- [The History of SimpleSchema](#the-history-of-simpleschema)
2932
- [Installation](#installation)
3033
- [Lingo](#lingo)
@@ -61,6 +64,7 @@ There are also reasons not to choose this package. Because of all it does, this
6164
- [minCount/maxCount](#mincountmaxcount)
6265
- [allowedValues](#allowedvalues)
6366
- [regEx](#regex)
67+
- [skipRegExCheckForEmptyStrings](#skipregexcheckforemptystrings)
6468
- [blackbox](#blackbox)
6569
- [trim](#trim)
6670
- [custom](#custom)
@@ -97,7 +101,6 @@ There are also reasons not to choose this package. Because of all it does, this
97101
- [Extending the Schema Options](#extending-the-schema-options)
98102
- [Add On Packages](#add-on-packages)
99103
- [Contributors](#contributors)
100-
- [Sponsors](#sponsors)
101104
- [License](#license)
102105
- [Contributing](#contributing)
103106
- [Thanks](#thanks)
@@ -1417,20 +1420,18 @@ Obviously you need to ensure that `extendOptions` is called before any SimpleSch
14171420

14181421
## Contributors
14191422

1420-
This project exists thanks to all the people who contribute. [[Contribute]](CONTRIBUTING.md).
1421-
<a href="graphs/contributors"><img src="https://opencollective.com/simple-schema-js/contributors.svg?width=890" /></a>
1422-
1423-
## Sponsors
1423+
This project exists thanks to all the people who contribute.
14241424

1425-
You can support this project by [becoming a sponsor](https://github.com/sponsors/aldeed).
1425+
<a href="graphs/contributors"><img src="https://opencollective.com/simple-schema-js/contributors.svg?width=890" /></a>
14261426

14271427
## License
14281428

14291429
MIT
14301430

14311431
## Contributing
14321432

1433-
Anyone is welcome to contribute. Before submitting a pull request, make sure that you've added tests for your changes, and that all tests pass when you run `npm test`.
1433+
Anyone is welcome to contribute. Before submitting a pull request, make sure that you've read our
1434+
[contribution guide](CONTRIBUTING.md).
14341435

14351436
### Thanks
14361437

0 commit comments

Comments
 (0)