-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c4b166
commit f0b2cb9
Showing
44 changed files
with
175 additions
and
58 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
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
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
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
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
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
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
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
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
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
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,12 @@ | ||
import oncreate from './oncreate'; | ||
import { Validator } from '../../'; | ||
import { Validator } from '../../index'; | ||
import { Node } from '../../../interfaces'; | ||
|
||
export default function onrender(validator: Validator, prop: Node) { | ||
validator.warn( | ||
`'onrender' has been deprecated in favour of 'oncreate', and will cause an error in Svelte 2.x`, | ||
prop | ||
); | ||
validator.warn(prop, { | ||
code: `deprecated-onrender`, | ||
message: `'onrender' has been deprecated in favour of 'oncreate', and will cause an error in Svelte 2.x` | ||
}); | ||
|
||
oncreate(validator, prop); | ||
} |
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,12 @@ | ||
import ondestroy from './ondestroy'; | ||
import { Validator } from '../../'; | ||
import { Validator } from '../../index'; | ||
import { Node } from '../../../interfaces'; | ||
|
||
export default function onteardown(validator: Validator, prop: Node) { | ||
validator.warn( | ||
`'onteardown' has been deprecated in favour of 'ondestroy', and will cause an error in Svelte 2.x`, | ||
prop | ||
); | ||
validator.warn(prop, { | ||
code: `deprecated-onteardown`, | ||
message: `'onteardown' has been deprecated in favour of 'ondestroy', and will cause an error in Svelte 2.x` | ||
}); | ||
|
||
ondestroy(validator, prop); | ||
} |
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
Oops, something went wrong.