Détail du package

scriptloader-component

WTW-IM2.9kISC2.1.0

A React Component for reacting to scripts loading.

react, component, script, onload

readme

scriptloader-component

A React Component for reacting to scripts loading.

changelog

2.1.0 (2024-06-07)

New

  • supporting scriptAttributes (e5ee7a1)

Upgrade

  • upgrading to latest semantic-release (84f2838)

2.0.3 (2022-12-08)

Fix

2.0.2 (2022-12-06)

Fix

  • outputting everything correctly (4139972)
  • shortening default export syntax (da990af)

2.0.1 (2022-12-02)

Build

  • releasing PR branches on their branch name's channel (f3f45ff)

Fix

  • ensuring all exports are present in secondary files (8dbbc47)

2.0.0 (2022-12-01)

Breaking

  • updating package to use ES modules file as main module (e9ddd26)

Update

  • exporting dist and module files (9702141)
  • updating packages (deab6ec)

1.5.4 (2022-11-11)

Patch

  • add children to ScriptLoaderProps (86cf8b3)

1.5.3 (2022-11-11)

Build

  • use node latest lts for builds (6f400cd)

Fix

  • ensure Success/Failed/Loading types match export (263760d)

1.5.2 (2022-10-03)

Build

  • ensuring we use pipeline bot pat for checkout (b43826e)
  • persist gh credentials (84d1b29)
  • use semantic-release-actionv3 (a0b62df)

Fix

  • react 18 children support (9135d1b)

1.5.1 (2021-01-25)

Fix

  • exporting correct type for useScriptLoader (dbd49b6)

1.5.0 (2021-01-23)

Update

  • making sure we export things appropriately (c56e2a1)

1.4.2 (2021-01-20)

Build

  • adding publishing to PRs for prerelease versions (4dc2f3d)
  • attempting to add PR comments for prerelease versions (bb03f31)
  • deleting im-pipeline-bot PR comments before adding new ones (c4b2ada)
  • improving PR commenting (8c238cf)
  • running publish on all branches (105a729)
  • setting up prerelease PR interaction (07fcdde)
  • updating PRs with internal prerelease @semantic-release plugin (bfa9c3d)

Fix

  • ensuring we call back on success while mounted (3e05d67)
  • fixing a small spelling error in scriptCache.ts (3d74ee4)

Refactor

  • moving script generation into scriptCache (e18b746)
  • setting up script inside Promise (875e62f)

1.4.1 (2021-01-14)

Fix

  • fixing a bug where webpack would break due to exports named twice (c57c97e)

1.4.0 (2021-01-13)

New

  • exporting scriptloader-support to be used outside of React (b3b1f89)

Update

  • utilizing promises for loading scripts (e472016)

1.3.0 (2021-01-05)

Fix

  • ensuring we only define window properties once (35fb37c)

Update

  • exporting useScriptLoader appropriately (ecd0e06)

1.2.2 (2020-12-02)

Fix

  • ensuring dist is always built before pack/publish (808a5ff)

1.2.1 (2020-12-02)

Fix

  • correcting package.json files (0a9ec94)

1.2.0 (2020-12-02)

Update

  • exporting ScripLoader as default from root file (b3ae460)

1.1.1 (2020-12-02)

Build

  • adding some extra tags for conventional commits (57af2f7)
  • allowing for other patch type commits (3c7ce28)
  • ensuring we checkout files before other jobs (54a8452)
  • removing needs from test in npm-publish (45f4afe)
  • running test before release (a7d8c4a)

Refactor

  • creating a default cached script (e29e5cb)

1.1.0 (2020-12-02)

Build

  • ensuring we skip builds on [skip ci] commits (e2fb21c)
  • updating commitlint to match conventional-changelog-eslint (92d6bf1)

Chore

  • moving script updater lookup to a function (3a4ebe0)

Update

  • renaming getScriptUpdaters to getCachedScriptUpdaters (8634054)

1.0.0 (2020-12-02)

Build

  • adding main branch to the configuration for semantic-release (9db01a3)
  • adding NPM Publish workflow (5cc67fd)
  • adding semantic release configuration (889fc32)
  • adding tests around ScriptLoader scenarios (2567f41)
  • configuring eslint preset for release notes (0d1d92e)
  • include dependency install in npm-publish (254fb9a)
  • initial node build workflow (78f978b)
  • renaming GH_TOKEN to GITHUB_TOKEN (75dda5f)
  • renaming GITHUB_TOKEN to GH_TOKEN for npm-publish workflow (488a019)
  • setting up typescript for publishing (072745c)
  • simplifying eslint config (7bdbb71)
  • updating node versions in CI workflow (4681a2a)
  • using COMMITBOT_ACCESS_TOKEN for the npm-publish workflow. (08cf105)
  • using im-commitbot for semantic-release (898e004)
  • using persist-credentials false in checkout action (8db4810)
  • using run instead of uses for npm-publish (985b126)

New

  • initial work for ScriptLoader (ff2d25c)

Update

  • early return when we have already loaded the script (9cecf81)
  • moving DOM script interaction into its own hook (da1fb6b)
  • using an internal Context to determine which children show (6c5123b)