Skip to content

Releases: abcnews/env-utils

User preferences

Choose a tag to compare

@drzax drzax released this 11 Dec 06:19
78936f0

The major change in this version is the introduction of prefersReducedMotion and prefersColorScheme exports.

BREAKING:

Support for obsolete environments has been removed. This includes potentially breaking changes where consuming code references the obsolete environments defined in the exported enums APPLICATIONS and/or GENERATIONS.

Commits:

  • Update dependencies cf177b7
  • Defer to commit history for contributor info 5a9c7e9
  • Minor readme correction 90701fe
  • Re-write user preferences as svelte stores 6d98b0e
  • Add user preferences - prefersReducedMotion - prefersColorScheme 7e1c49b
  • Remove references to obsolete environments 94080d3
  • Merge pull request #34 from abcnews/docs-update 264866f
  • These aren' function calls 2256fe7

v5.0.2...v6.0.0

v5.0.2

Choose a tag to compare

@AshKyd AshKyd released this 27 Nov 04:57
  • bug: Cannot find module '@abcnews/env-utils' or its corresponding type declarations 15e16e6

v5.0.1...v5.0.2

v5.0.1

Choose a tag to compare

@AshKyd AshKyd released this 20 Nov 03:25
  • bug: mockDecoyActivationEvents must set clone=true on target 5cf8b67
  • bug: add envrc and update deps for security d67f52b

v5.0.0...v5.0.1

v5.0.0

Choose a tag to compare

@drzax drzax released this 09 Jun 02:39
76dc233

This should be a non-breaking change for most uses. The breaking aspects are:

  • Remove support for node before v20
  • Remove CJS outputs

Update dependencies:

  • Remove linting
  • Specify supported node (>= 20) and npm versions (>=9)
  • Remove common js output from build config
  • Fix window.location mocking bbe04b0

v4.0.0...v5.0.0

4.0

4.0

Choose a tag to compare

@drzax drzax released this 10 Jun 03:43
f3691d0

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

Choose a tag to compare

@drzax drzax released this 02 Nov 00:59
8d384a3

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

Choose a tag to compare

@colingourlay colingourlay released this 15 Jul 02:31
  • 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

Choose a tag to compare

@drzax drzax released this 09 Mar 05:49
5093394

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

Choose a tag to compare

@colingourlay colingourlay released this 19 Feb 03:14
  • 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

Choose a tag to compare

@colingourlay colingourlay released this 03 Feb 03:34
  • 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