Releases: abcnews/env-utils
Releases · abcnews/env-utils
4.0
This add support for detecting future news templates and drop support for some unused environments and API methods.
Breaking
getEnvironment
method has been removed (along with theENVIRONMENTS
enum)- Drops support for mobile.abc.net.au subdomain
- Drops support for nucwed
- Drops support for detecting 'Phase 1' and 'Phase 2' templates.
Commits
- Merge pull request #29 from abcnews/4.0 5150f77
- Remove Colin's email from readme e14bd4d
- Update the build command in the pr workflow 77ea9d7
- Remove getEnvironment() 38f04d1
- Update node version on workflow 49bcb14
- Detect future news template 32148bb
- Remove detection of obsolete environments b92cfcb
- Update dependencies c603dc7
- Update README.md c0f800a
- Update README.md 282eb65
v3.1.0
The functional part of this release is the addition of a mockDecoyActiveationEvents
function (see the readme for details). The rest is build tooling and can be ignored if you're a user of this package.
- Merge pull request #26 from abcnews/mock-pl-events 86525a4
- Update location mocking in tests 61ded7c
- Use the PL events enum 53e19ae
- Point size-limit to the correct build output 79d2c05
- Use the enum for event names 3e77461
- Fix husky 982bcaf
- tsdx -> tsup,eslint,jest ac5a29c
- Fix tests 8007b9f
- Clean up dependencies and configure size-limit aef5c59
- Add new test for PL NEWS WEB application b9b86d2
- Add a mockDecoyActivationEvents dev utility 0d01551
- News web now has a generator meta tag for all outputs 60ab8cc
v3.0.1
- Function doesn't need to ba async. 4f6eef1
- Merge pull request #19 from abcnews/dependency-updates 3cc3715
- Update dependencies bcb4345
- Merge pull request #15 from abcnews/dependabot/npm_and_yarn/hosted-git-info-2.8.9 8924fcd
- Merge pull request #14 from abcnews/dependabot/npm_and_yarn/lodash-4.17.21 6484ae3
- Bump hosted-git-info from 2.8.8 to 2.8.9 3aa1729
- Bump lodash from 4.17.20 to 4.17.21 b7e3ca9
v3.0.0
Breaking changes
getApplication
andgetGeneration
no longer support the ABC Life app.requestDOMPermit
now accepts arbitrary strings for thekey
argument (and consequently has change to the type definition of that argument)- the promise returned by
requestDOMPermit
now resolves to an array ofHTMLElement
s for which permits have been granted on PL generation sites. There is no change to non-PL sites where the promise resolves totrue
- the promise returned by
requestDOMPermit
now has a timeout of 5 seconds, after which it will be rejected and the request will attempt to be reversed
Commits
- Fix npmignore 4eddc66
- Merge branch 'master' of https://github.com/abcnews/env-utils b3ffc56
- Document whenDOMReady and whenOdysseyLoaded af34cb1
- Add husky to the npm ignore list 8841fb0
- Merge pull request #12 from abcnews/arbitrary-decoys-1 c5d9076
- Merge branch 'master' into arbitrary-decoys-1 e0256a1
- Merge branch 'master' into arbitrary-decoys-1 eee89d1
- Merge pull request #3 from abcnews/lifeless 087574e
- Merge branch 'master' into lifeless 360a9a8
- Merge pull request #8 from abcnews/arbitrary-decoys 6cb9c47
- Fix caching of memoized functions which call other memoized functions 307cb55
- Add tests for getGeneration and requestDOMPermit 8602413
- Remove the environment setting from pr workflow a133142
- Add new test for APPLICATIONS.P1S 50a4d63
- Add size workflow preset 7576810
- Reference the environment in the workflow 2c9a471
- Fix workflow event name e2d5622
- Tests and workflows 39188df
- Return decoyed elements where possible and reject on timeout c4a146b
- Handle arbitrary number of decoy activations 5511902
- Merge branch 'master' into arbitrary-decoys 458002f
- Merge pull request #9 from abcnews/add-env-detection 1032f04
- Merge branch 'master' into arbitrary-decoys 9d55e4f
- Give memoize a generic type a13e0d8
- Update dependencies c0d0623
- Add environment detection 2434663
- Clarify in README that decoy keys can be any [a-z] string, and that multiple decoys can be activated as a result of a single
requestDOMPermit
. Retain theDECOY_KEYS
enum as a list of known keys but relax the type restrictions on key arguments fromDECOY_KEYS
tostring
. ecd9d9b - Well, that was short lived. 759e89f
v2.1.2
Supporting ABC Everyday
v2.1.0
v2.0.0: New application detection
- Application detection is now limited to DOM that will have been parsed before Associated JS documents are executed (part-way through the
<head>
element). getApplication
,getGeneration
andgetTier
are now memoized so we no longer need to re-consultwindow.location
or re-execute multipledocument.querySelector
calls.- More PL apps can be detected: ABC AMP, Core & Life. This prepares us for Associated JS eventually being permitted in these environments.
- [BREAKING] The News App is no longer considered a separate app (which we called News Web Chromeless), because those pages are just a News Web articles with no header/footer.
- Add newsapp.abc.net.au domain (which the News App's PL article pages are served from) to the live tier's domain list.
- Updated README to reflect changes to
APPLICATIONS
,GENERATIONS
andTIERS
enums.
v1.2.0
- Simplify decoy activation event handling to remove the need of deferred-style promises (single-use activation event handlers over a general-purpose one). Remove permit references as they're revoked. 0840cdc
v1.1.1
- presentationLayerDecoyActivationRequests[key] should match undefined 1706c5e