-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Shiny.initializedPromise
(#4063)
* Convert Shiny from interface to class * Remove unused global Shiny type * Add prettier plugin for organizing imports * Disable eslint indentation rule * Simplify types * Add Shiny.connectedPromise and Shiny.sessionInitPromise * Fix typing issue * Move prettier plugin to devDependencies * Rename Shiny class to ShinyClass, and export type * Remove global Shiny type; use internal imports * Small code cleanup * Move initShiny() function into ShinyClass * Rebuild type files * Raise error if window.Shiny already exists * Rename promises * Add InitStatusPromise class * `yarn build` (GitHub Actions) * Update news * Remove isConnected * Update yarn.lock * Rename isInitialized to initializedPromise * Rebuild shiny.js * `yarn build` (GitHub Actions) * Update NEWS --------- Co-authored-by: wch <[email protected]>
- Loading branch information
Showing
28 changed files
with
8,246 additions
and
8,297 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 |
---|---|---|
|
@@ -35,10 +35,6 @@ rules: | |
|
||
default-case: | ||
- error | ||
indent: | ||
- error | ||
- 2 | ||
- SwitchCase: 1 | ||
linebreak-style: | ||
- error | ||
- unix | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,4 @@ | ||
import { init } from "./initialize"; | ||
export { Shiny, type ShinyClass } from "./initialize"; | ||
|
||
init(); |
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
Oops, something went wrong.