This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added netlify sdk 0.8.5 docs * run prettier
- Loading branch information
1 parent
99b6c38
commit 28af725
Showing
8 changed files
with
403 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,54 @@ | ||
This codemod changes createEnvironmentVariable to pass an object instead of the separate arguments: | ||
# createEnvironmentVariable | ||
|
||
createEnvironmentVariable(accountId, siteId, key, values) | ||
## Description | ||
|
||
to | ||
This codemod changes `createEnvironmentVariable` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
createEnvironmentVariable(accountId, siteId, key, values); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
createEnvironmentVariable({ | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key, | ||
values: values | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key, | ||
values: values, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,54 @@ | ||
This codemod changes createOrUpdateVariable to pass an object instead of the separate arguments: | ||
# createOrUpdateVariable | ||
|
||
createOrUpdateVariable(accountId, siteId, key, value) | ||
## Description | ||
|
||
to | ||
This codemod changes `createOrUpdateVariable` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
createOrUpdateVariable(accountId, siteId, key, value); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
createOrUpdateVariable({ | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key, | ||
values: value | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key, | ||
values: value, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,53 @@ | ||
This codemod changes createOrUpdateVariables to pass an object instead of the separate arguments: | ||
# createOrUpdateVariables | ||
|
||
createOrUpdateVariables(accountId, siteId, variables) | ||
## Description | ||
|
||
to | ||
This codemod changes `createOrUpdateVariables` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
createOrUpdateVariables(accountId, siteId, variables); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
createOrUpdateVariables({ | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: variables | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: variables, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,53 @@ | ||
This codemod changes deleteEnvironmentVariable to pass an object instead of the separate arguments: | ||
# deleteEnvironmentVariable | ||
|
||
deleteEnvironmentVariable(accountId, siteId, key) | ||
## Description | ||
|
||
to | ||
This codemod changes `deleteEnvironmentVariable` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
deleteEnvironmentVariable(accountId, siteId, key); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
deleteEnvironmentVariable({ | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
key: key, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,53 @@ | ||
This codemod changes deleteEnvironmentVariables to pass an object instead of the separate arguments: | ||
# deleteEnvironmentVariables | ||
|
||
deleteEnvironmentVariables(accountId, siteId, variables) | ||
## Description | ||
|
||
to | ||
This codemod changes `deleteEnvironmentVariables` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
deleteEnvironmentVariables(accountId, siteId, variables); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
deleteEnvironmentVariables({ | ||
accountId: accountId, | ||
siteId: siteId, | ||
variables: variables | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
variables: variables, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,52 @@ | ||
This codemod changes getEnvironmentVariables to pass an object instead of the separate arguments: | ||
# getEnvironmentVariables | ||
|
||
getEnvironmentVariables(accountId, siteId) | ||
## Description | ||
|
||
to | ||
This codemod changes `getEnvironmentVariables` to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5. | ||
|
||
## Example | ||
|
||
### Before | ||
|
||
```jsx | ||
getEnvironmentVariables(accountId, siteId); | ||
``` | ||
|
||
### After | ||
|
||
```jsx | ||
getEnvironmentVariables({ | ||
accountId: accountId, | ||
siteId: siteId | ||
}) | ||
accountId: accountId, | ||
siteId: siteId, | ||
}); | ||
``` | ||
|
||
## Applicability Criteria | ||
|
||
Netlify SDK v0.8.5 or higher. | ||
|
||
## Other Metadata | ||
|
||
### Codemod Version | ||
|
||
v1.0.0 | ||
|
||
### Change Mode | ||
|
||
**Autonomous**: Changes can safely be pushed and merged without further human involvement. | ||
|
||
### **Codemod Engine** | ||
|
||
jscodeshift | ||
|
||
### Estimated Time Saving | ||
|
||
~3 minutes per occurrence | ||
|
||
### Owner | ||
|
||
[Intuita](https://github.com/intuita-inc) | ||
|
||
### Links for more info | ||
|
||
- [Netlify SDK v0.8.5 Release Notes](https://sdk.netlify.com/release-notes/#085) |
Oops, something went wrong.