Skip to content

Commit

Permalink
chore: master -> main
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Jul 29, 2020
1 parent cd96efa commit 3e64fb3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!-- Love simple-schema-js? Please consider supporting our collective:
👉 https://opencollective.com/simple-schema-js/donate -->
<!-- Love simpl-schema? Please consider supporting our collective:
👉 https://opencollective.com/simpl-schema/donate -->
4 changes: 2 additions & 2 deletions .github/workflows/lint-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main

jobs:
lint:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:

publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.repository_owner == 'aldeed' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.repository_owner == 'aldeed' && github.ref == 'refs/heads/main' }}
needs: [lint, test]
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

## Introduction

First, thank you for considering contributing to simple-schema-js! It's people like you that make the open source community such a great community! 😊
First, thank you for considering contributing to simpl-schema! It's people like you that make the open source community such a great community! 😊

We welcome any type of contribution, not only code. You can help with

Expand Down Expand Up @@ -56,7 +56,7 @@ You can also reach us at hello@simple-schema-js.opencollective.com.

### Contributors

Thank you to all the people who have already contributed to simple-schema-js!
Thank you to all the people who have already contributed to simpl-schema!
<a href="graphs/contributors"><img src="https://opencollective.com/simple-schema-js/contributors.svg?width=890" /></a>

### Backers
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ Any other return value will be used as the field's value. You may also return sp

#### autoValue gotchas

- If your autoValue for one field relies on the autoValue or defaultValue of another field, make sure that the other field is listed before the field that relies on it in the schema. autoValues are run in order from least nested, to most nested, so you can assume that parent values will be set, but for fields at the same level, schema order matters. Refer to [issue #204](https://github.com/aldeed/simple-schema-js/issues/204).
- If your autoValue for one field relies on the autoValue or defaultValue of another field, make sure that the other field is listed before the field that relies on it in the schema. autoValues are run in order from least nested, to most nested, so you can assume that parent values will be set, but for fields at the same level, schema order matters. Refer to [issue #204](https://github.com/aldeed/simpl-schema/issues/204).
- An `autoValue` function will always run during cleaning even if that field is not in the object being cleaned. This allows you to provide complex default values. If your function applies only when there is a value, you should add `if (!this.isSet) return;` at the top.

### Function Properties
Expand Down Expand Up @@ -1138,7 +1138,7 @@ SimpleSchema.setDefaultMessages({
});
```

The object syntax is the same as shown [here](https://github.com/aldeed/node-message-box#defining-messages) for `MessageBox.defaults`. When you call `setDefaultMessages`, it simply extends [the default defaults](https://github.com/aldeed/simple-schema-js/blob/master/package/lib/defaultMessages.js#L18). **Be sure to call it before you create any of your SimpleSchema instances**
The object syntax is the same as shown [here](https://github.com/aldeed/node-message-box#defining-messages) for `MessageBox.defaults`. When you call `setDefaultMessages`, it simply extends [the default defaults](https://github.com/aldeed/simpl-schema/blob/main/package/lib/defaultMessages.js#L18). **Be sure to call it before you create any of your SimpleSchema instances**

The `MessageBox` instance for a specific schema instance is `simpleSchemaInstance.messageBox`. You can call `messages` function on this to update the messages for that schema only. Example:

Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
},
"release": {
"branches": [
"master"
"main"
],
"tagFormat": "${version}"
},
Expand Down

0 comments on commit 3e64fb3

Please sign in to comment.