Skip to content

Releases: abcnews/env-utils

4.0

10 Jun 03:43
f3691d0
Compare
Choose a tag to compare

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 the ENVIRONMENTS 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...v4.0.0

v3.1.0

02 Nov 00:59
8d384a3
Compare
Choose a tag to compare

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...v3.1.0

v3.0.1

15 Jul 02:31
Compare
Choose a tag to compare
  • 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...v3.0.1

v3.0.0

09 Mar 05:49
5093394
Compare
Choose a tag to compare

Breaking changes

  • getApplication and getGeneration no longer support the ABC Life app.
  • requestDOMPermit now accepts arbitrary strings for the key argument (and consequently has change to the type definition of that argument)
  • the promise returned byrequestDOMPermit now resolves to an array of HTMLElements for which permits have been granted on PL generation sites. There is no change to non-PL sites where the promise resolves to true
  • the promise returned byrequestDOMPermit 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 the DECOY_KEYS enum as a list of known keys but relax the type restrictions on key arguments from DECOY_KEYS to string. ecd9d9b
  • Well, that was short lived. 759e89f

v2.1.2...v3.0.0

v2.1.2

19 Feb 03:14
Compare
Choose a tag to compare
  • Don't assume we have a 2nd child node 3291e37
  • Include ABC Everyday application in getApplication docs. 3571216

v2.1.1...v2.1.2

Supporting ABC Everyday

03 Feb 03:34
Compare
Choose a tag to compare
  • Add ABC Everyday application to README 2a512f5
  • Change PL's partial hostname for preview tier detection, to include feature branches which don't have "preview." in their hostnames 684e218
  • Add Presentation Layer's ABC Everyday application 9770bef

v2.1.0...v2.1.1

v2.1.0

02 Dec 05:54
c5d0346
Compare
Choose a tag to compare

v2.0.0...v2.1.0

v2.0.0: New application detection

22 Jun 03:04
Compare
Choose a tag to compare
  • 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 and getTier are now memoized so we no longer need to re-consult window.location or re-execute multiple document.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 and TIERS enums.

v1.2.0...v2.0.0

v1.2.0

15 Jun 02:18
Compare
Choose a tag to compare
  • 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...v1.2.0

v1.1.1

10 Jun 06:55
Compare
Choose a tag to compare
  • presentationLayerDecoyActivationRequests[key] should match undefined 1706c5e

v1.1.0...v1.1.1