From 9aad3d49634be4e71457558263641cf39d9f5c10 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 28 Nov 2019 10:48:52 +0100 Subject: [PATCH] Version 0.2.0 (#42) --- .changeset/lemon-pets-cover.md | 11 ----------- CHANGELOG.md | 22 ++++++++++++++++------ package.json | 2 +- 3 files changed, 17 insertions(+), 18 deletions(-) delete mode 100644 .changeset/lemon-pets-cover.md diff --git a/.changeset/lemon-pets-cover.md b/.changeset/lemon-pets-cover.md deleted file mode 100644 index 238fc775..00000000 --- a/.changeset/lemon-pets-cover.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"dom-accessibility-api": minor ---- - -Add option to mock window.getComputedStyle - -This option has two use cases in mind: - -1. fake the style and assume everything is visible. - This increases performance (window.getComputedStyle) is expensive) by not distinguishing between various levels of visual impairments. If one can't see the name with a screen reader then neither will a sighted user -2. Wrap a cache provider around `window.getComputedStyle`. We don't implement any because the returned `CSSStyleDeclaration` is only live in a browser. `jsdom` does not implement live declarations. diff --git a/CHANGELOG.md b/CHANGELOG.md index ee70e415..7e01fd1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,24 @@ # [0.1.0](https://github.com/eps1lon/dom-accessibility-api/compare/v0.0.1...v0.1.0) (2019-11-05) +## 0.2.0 -### Bug Fixes +### Minor Changes + +- eb86842: Add option to mock window.getComputedStyle + + This option has two use cases in mind: -* Fix test name_heading-combobox ([#16](https://github.com/eps1lon/dom-accessibility-api/issues/16)) ([e969395](https://github.com/eps1lon/dom-accessibility-api/commit/e969395d8da637862993aeee0b86f379342d56f2)) + 1. fake the style and assume everything is visible. + This increases performance (window.getComputedStyle) is expensive) by not distinguishing between various levels of visual impairments. If one can't see the name with a screen reader then neither will a sighted user + 2. Wrap a cache provider around `window.getComputedStyle`. We don't implement any because the returned `CSSStyleDeclaration` is only live in a browser. `jsdom` does not implement live declarations. + +### Bug Fixes +- Fix test name_heading-combobox ([#16](https://github.com/eps1lon/dom-accessibility-api/issues/16)) ([e969395](https://github.com/eps1lon/dom-accessibility-api/commit/e969395d8da637862993aeee0b86f379342d56f2)) ### Features -* **name:** Consider prohibited naming ([#19](https://github.com/eps1lon/dom-accessibility-api/issues/19)) ([6692d6b](https://github.com/eps1lon/dom-accessibility-api/commit/6692d6bd86030da9b340b0895f623394b21e2656)) -* Consider all cases of "name from content" ([#13](https://github.com/eps1lon/dom-accessibility-api/issues/13)) ([835cb76](https://github.com/eps1lon/dom-accessibility-api/commit/835cb76e7c1dd577af1fa891ad849385e58fcd56)) -* Consider content from before and after pseudo elements ([#5](https://github.com/eps1lon/dom-accessibility-api/issues/5)) ([0987426](https://github.com/eps1lon/dom-accessibility-api/commit/0987426734cc7b980a8edf39435820a24ea2a162)) -* Fork elementToRole from aria-query ([#7](https://github.com/eps1lon/dom-accessibility-api/issues/7)) ([fe4fab5](https://github.com/eps1lon/dom-accessibility-api/commit/fe4fab57786324705c4ac4434de8aabd3e7bbc09)) +- **name:** Consider prohibited naming ([#19](https://github.com/eps1lon/dom-accessibility-api/issues/19)) ([6692d6b](https://github.com/eps1lon/dom-accessibility-api/commit/6692d6bd86030da9b340b0895f623394b21e2656)) +- Consider all cases of "name from content" ([#13](https://github.com/eps1lon/dom-accessibility-api/issues/13)) ([835cb76](https://github.com/eps1lon/dom-accessibility-api/commit/835cb76e7c1dd577af1fa891ad849385e58fcd56)) +- Consider content from before and after pseudo elements ([#5](https://github.com/eps1lon/dom-accessibility-api/issues/5)) ([0987426](https://github.com/eps1lon/dom-accessibility-api/commit/0987426734cc7b980a8edf39435820a24ea2a162)) +- Fork elementToRole from aria-query ([#7](https://github.com/eps1lon/dom-accessibility-api/issues/7)) ([fe4fab5](https://github.com/eps1lon/dom-accessibility-api/commit/fe4fab57786324705c4ac4434de8aabd3e7bbc09)) diff --git a/package.json b/package.json index a28ee3b6..f1c1e506 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dom-accessibility-api", - "version": "0.1.0", + "version": "0.2.0", "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT",