Skip to content

Commit 3e64fb3

Browse files
committed
chore: master -> main
1 parent cd96efa commit 3e64fb3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<!-- Love simple-schema-js? Please consider supporting our collective:
2-
👉 https://opencollective.com/simple-schema-js/donate -->
1+
<!-- Love simpl-schema? Please consider supporting our collective:
2+
👉 https://opencollective.com/simpl-schema/donate -->

.github/workflows/lint-test-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
jobs:
1010
lint:
@@ -45,7 +45,7 @@ jobs:
4545

4646
publish:
4747
runs-on: ubuntu-latest
48-
if: ${{ github.event_name == 'push' && github.repository_owner == 'aldeed' && github.ref == 'refs/heads/master' }}
48+
if: ${{ github.event_name == 'push' && github.repository_owner == 'aldeed' && github.ref == 'refs/heads/main' }}
4949
needs: [lint, test]
5050
defaults:
5151
run:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
## Introduction
2121

22-
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! 😊
22+
First, thank you for considering contributing to simpl-schema! It's people like you that make the open source community such a great community! 😊
2323

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

@@ -56,7 +56,7 @@ You can also reach us at [email protected].
5656

5757
### Contributors
5858

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

6262
### Backers

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ Any other return value will be used as the field's value. You may also return sp
807807

808808
#### autoValue gotchas
809809

810-
- 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).
810+
- 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).
811811
- 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.
812812

813813
### Function Properties
@@ -1138,7 +1138,7 @@ SimpleSchema.setDefaultMessages({
11381138
});
11391139
```
11401140

1141-
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**
1141+
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**
11421142

11431143
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:
11441144

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
"release": {
109109
"branches": [
110-
"master"
110+
"main"
111111
],
112112
"tagFormat": "${version}"
113113
},

0 commit comments

Comments
 (0)