Skip to content

Commit

Permalink
refactor: Email template fix (#482)
Browse files Browse the repository at this point in the history
* refactor: email templates update

* changelog updates
  • Loading branch information
bhumilsarvaiya authored Feb 7, 2023
1 parent 282a7a6 commit 786740d
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 76 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [13.0.1] - 2023-02-06

- Email template updates

## [13.0.0] - 2023-02-01

### Breaking changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,6 @@ function getPasswordResetEmailHTML(appName, email, resetLink) {
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,6 @@ function getEmailVerifyEmailHTML(appName, email, verificationLink) {
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,6 @@ function getPasswordlessLoginOTPBody(appName, email, codeLifetime, userInputCode
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down Expand Up @@ -1421,13 +1414,6 @@ function getPasswordlessLoginURLLinkBody(appName, email, codeLifetime, urlWithLi
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down Expand Up @@ -2351,13 +2337,6 @@ function getPasswordlessLoginOTPAndURLLinkBody(appName, email, codeLifetime, url
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,6 @@ export function getPasswordResetEmailHTML(appName: string, email: string, resetL
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,6 @@ export function getEmailVerifyEmailHTML(appName: string, email: string, verifica
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,6 @@ function getPasswordlessLoginOTPBody(appName: string, email: string, codeLifetim
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down Expand Up @@ -1441,13 +1434,6 @@ function getPasswordlessLoginURLLinkBody(
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down Expand Up @@ -2378,13 +2364,6 @@ function getPasswordlessLoginOTPAndURLLinkBody(
text-decoration: underline;
}
@media only screen and (min-width:768px) {
.templateContainer {
width: 600px !important;
}
}
@media only screen and (max-width: 480px) {
body,
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
export const version = "13.0.0";
export const version = "13.0.1";

export const cdiSupported = ["2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "2.15"];

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "supertokens-node",
"version": "13.0.0",
"version": "13.0.1",
"description": "NodeJS driver for SuperTokens core",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 786740d

Please sign in to comment.