Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
15ce973
fix(polyfill): Fix a race condition with adopting stylesheets in Firefox
calebdwilliams Feb 6, 2020
9b5c942
chore(release): 2.3.3
calebdwilliams Feb 6, 2020
14272c9
chore(release): 2.3.4
calebdwilliams Feb 6, 2020
fb0f1aa
chore(release): 2.3.5
calebdwilliams Feb 6, 2020
402b624
chore(deps-dev): bump codecov from 3.6.1 to 3.6.5
dependabot[bot] Feb 19, 2020
b67006a
Merge pull request #47 from calebdwilliams/dependabot/npm_and_yarn/co…
calebdwilliams Feb 27, 2020
ebe3ffb
chore(deps): bump acorn from 7.1.0 to 7.1.1
dependabot[bot] Mar 14, 2020
f03e4fd
Merge pull request #48 from calebdwilliams/dependabot/npm_and_yarn/ac…
calebdwilliams Jun 3, 2020
c9c257a
chore(deps-dev): bump standard-version from 7.0.0 to 8.0.1
dependabot[bot] Jul 13, 2020
9a66efd
Merge pull request #50 from calebdwilliams/dependabot/npm_and_yarn/st…
calebdwilliams Jul 14, 2020
1e6cbbd
chore(deps): bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 16, 2020
77c92e8
Merge pull request #51 from calebdwilliams/dependabot/npm_and_yarn/lo…
calebdwilliams Jul 16, 2020
7908088
chore(deps-dev): bump codecov from 3.6.5 to 3.7.1
dependabot[bot] Jul 21, 2020
b6b1988
Merge pull request #52 from calebdwilliams/dependabot/npm_and_yarn/co…
calebdwilliams Jul 21, 2020
4d5709f
fix: remove styles properly
dyoder Aug 5, 2020
e3b76a0
Merge pull request #56 from dashkite/fix-54
calebdwilliams Aug 5, 2020
8fa34a9
feat: remove @import support per new behavior in Chrome
calebdwilliams Aug 19, 2020
648f820
"chore(release): 2.4.0"
calebdwilliams Aug 19, 2020
be23440
fix: remove console.log from dist
calebdwilliams Sep 6, 2020
2071ab0
"chore(release): 2.4.1"
calebdwilliams Sep 6, 2020
b4b25e2
chore(deps): bump http-proxy from 1.18.0 to 1.18.1
dependabot[bot] Sep 6, 2020
d8faa40
Merge pull request #59 from calebdwilliams/dependabot/npm_and_yarn/ht…
calebdwilliams Sep 6, 2020
1e11b32
fix: move attachShadow override to Element per spec
calebdwilliams Sep 25, 2020
73c696d
"chore(release): 2.4.2"
calebdwilliams Sep 25, 2020
28b4223
fix: abort mutation callback if document doesn't exist anymore
denyo Nov 4, 2020
81b644e
Merge pull request #63 from denyo/master
calebdwilliams Nov 18, 2020
393ccdf
"chore(release): 2.4.3"
calebdwilliams Nov 18, 2020
99bdde3
fix: ensure referential integrity, match chromes behavior
DesignByOnyx Feb 7, 2020
69a3608
chore: update error messaging, improve hasInstance code
DesignByOnyx Feb 11, 2020
c62fde6
fix: loosen import regex, update import tests and invocation tests
DesignByOnyx Dec 28, 2020
0c248ed
Merge pull request #46 from DesignByOnyx/referential-integrity
calebdwilliams Dec 29, 2020
6ca0846
"chore(release): 2.4.4"
calebdwilliams Dec 29, 2020
ab64cfa
"chore(release): 2.4.5"
calebdwilliams Dec 29, 2020
d7abf3c
fix: add typings to files
calebdwilliams Dec 29, 2020
46dcfd0
"chore(release): 2.4.6"
calebdwilliams Dec 29, 2020
8f1e1cc
fix: add declare module to typings (#68)
hansottowirtz Feb 7, 2021
b9bc6cb
chore: add husky and commitlint
calebdwilliams Feb 7, 2021
93be54e
"chore(release): 2.4.9"
calebdwilliams Feb 7, 2021
c7083ad
fix: on adopt insert after last child
calebdwilliams Feb 13, 2021
b7d8076
"chore(release): 2.4.11"
calebdwilliams Feb 13, 2021
35b0236
fix: apply styles to element created during document loading (#70)
Artur- Feb 14, 2021
1e192ba
"chore(release): 2.4.14"
calebdwilliams Feb 14, 2021
ba113a3
chore(build): remove test hook due to strage behavior with standard-v…
calebdwilliams Feb 14, 2021
52596fa
"chore(release): 2.4.15"
calebdwilliams Feb 14, 2021
82ab33b
fix: add support for closed shadow roots
calebdwilliams Feb 14, 2021
b793dd7
"chore(release): 2.4.16"
calebdwilliams Feb 14, 2021
95f69f1
feat: add CI action
Lodin Sep 28, 2019
0a3e8e4
refactor: remove travis settings
Lodin Sep 28, 2019
b2f44a0
chore(CI): include only specific paths for CI to watch over
Lodin Nov 18, 2019
68c27a3
chore: use github CI status
Lodin Nov 18, 2019
3747dc0
chore(CI): add a couple of config file to watching
Lodin Nov 18, 2019
4d8c598
chore: update CI workflow to the latest version of Github Actions
Lodin Mar 26, 2021
cc2bd7f
chore: fix README badge
Lodin Mar 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
push:
branches: [$default-branch]
paths:
- '.github/workflows/ci.yml'
- 'plugins/**'
- 'src/**'
- 'test/**'
- '.babelrc'
- '.browserslistrc'
- '.prettierrc'
- 'karma.conf.js'
- 'package.json'
- 'package-lock.json'
- 'rollup.config.js'
- 'tsconfig.json'
pull_request:
branches: [$default-branch]
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/ci.yml'
- 'plugins/**'
- 'src/**'
- 'test/**'
- '.babelrc'
- '.browserslistrc'
- '.prettierrc'
- 'karma.conf.js'
- 'package.json'
- 'package-lock.json'
- 'rollup.config.js'
- 'tsconfig.json'

jobs:
testing:
name: 'Testing on OS: ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
timeout-minutes: 5

strategy:
matrix:
node-version: [14.x]
os: [windows-latest, macOS-latest]

steps:
- name: Checkout project code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Installation
run: npm ci
- name: Linting & Typechecking
run: npm run typecheck
- name: Testing
run: npm run test:coverage
env:
CI: true
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

126 changes: 126 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,132 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.4.16](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.15...v2.4.16) (2021-02-14)


### Bug Fixes

* add support for closed shadow roots ([82ab33b](https://github.com/calebdwilliams/adoptedStyleSheets/commit/82ab33b8eaf5baf60ce5939cadf442cf3ad70e88))

### [2.4.15](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.14...v2.4.15) (2021-02-14)

### [2.4.14](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.11...v2.4.14) (2021-02-14)


### Bug Fixes

* apply styles to element created during document loading ([#70](https://github.com/calebdwilliams/adoptedStyleSheets/issues/70)) ([35b0236](https://github.com/calebdwilliams/adoptedStyleSheets/commit/35b02365de1b86ea2df4ff109254ef18174b4651)), closes [#67](https://github.com/calebdwilliams/adoptedStyleSheets/issues/67)

### [2.4.13](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.11...v2.4.13) (2021-02-14)


### Bug Fixes

* apply styles to element created during document loading ([#70](https://github.com/calebdwilliams/adoptedStyleSheets/issues/70)) ([35b0236](https://github.com/calebdwilliams/adoptedStyleSheets/commit/35b02365de1b86ea2df4ff109254ef18174b4651)), closes [#67](https://github.com/calebdwilliams/adoptedStyleSheets/issues/67)

### [2.4.12](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.11...v2.4.12) (2021-02-14)


### Bug Fixes

* apply styles to element created during document loading ([#70](https://github.com/calebdwilliams/adoptedStyleSheets/issues/70)) ([35b0236](https://github.com/calebdwilliams/adoptedStyleSheets/commit/35b02365de1b86ea2df4ff109254ef18174b4651)), closes [#67](https://github.com/calebdwilliams/adoptedStyleSheets/issues/67)

### [2.4.11](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.9...v2.4.11) (2021-02-13)


### Bug Fixes

* on adopt insert after last child ([c7083ad](https://github.com/calebdwilliams/adoptedStyleSheets/commit/c7083ade7cb5862238dbc1243c5be51f7e72b275))

### [2.4.10](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.9...v2.4.10) (2021-02-13)


### Bug Fixes

* on adopt insert after last child ([c7083ad](https://github.com/calebdwilliams/adoptedStyleSheets/commit/c7083ade7cb5862238dbc1243c5be51f7e72b275))

### [2.4.9](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.6...v2.4.9) (2021-02-07)


### Bug Fixes

* add declare module to typings ([#68](https://github.com/calebdwilliams/adoptedStyleSheets/issues/68)) ([8f1e1cc](https://github.com/calebdwilliams/adoptedStyleSheets/commit/8f1e1ccde2af4102388e32e1c41c6dee0b249bc8))

### [2.4.8](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.6...v2.4.8) (2021-02-07)


### Bug Fixes

* add declare module to typings ([#68](https://github.com/calebdwilliams/adoptedStyleSheets/issues/68)) ([8f1e1cc](https://github.com/calebdwilliams/adoptedStyleSheets/commit/8f1e1ccde2af4102388e32e1c41c6dee0b249bc8))

### [2.4.7](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.6...v2.4.7) (2021-02-07)


### Bug Fixes

* add declare module to typings ([#68](https://github.com/calebdwilliams/adoptedStyleSheets/issues/68)) ([8f1e1cc](https://github.com/calebdwilliams/adoptedStyleSheets/commit/8f1e1ccde2af4102388e32e1c41c6dee0b249bc8))

### [2.4.6](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.5...v2.4.6) (2020-12-29)


### Bug Fixes

* add typings to files ([d7abf3c](https://github.com/calebdwilliams/adoptedStyleSheets/commit/d7abf3cb176fa3d20311164babc6aa91bd65e8a6))

### [2.4.5](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.4...v2.4.5) (2020-12-29)

### [2.4.4](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.3...v2.4.4) (2020-12-29)


### Bug Fixes

* ensure referential integrity, match chromes behavior ([99bdde3](https://github.com/calebdwilliams/adoptedStyleSheets/commit/99bdde34548e08f3949ba817da61693a9248e731))
* loosen import regex, update import tests and invocation tests ([c62fde6](https://github.com/calebdwilliams/adoptedStyleSheets/commit/c62fde60db9abff6ead0ba8dfb1c9fd4733d5b19))

### [2.4.3](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.2...v2.4.3) (2020-11-18)


### Bug Fixes

* abort mutation callback if document doesn't exist anymore ([28b4223](https://github.com/calebdwilliams/adoptedStyleSheets/commit/28b4223775d90b454371422f7fc6c5d9593eed69))

### [2.4.2](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.1...v2.4.2) (2020-09-25)


### Bug Fixes

* move attachShadow override to Element per spec ([1e11b32](https://github.com/calebdwilliams/adoptedStyleSheets/commit/1e11b329f1a937e6f73bdca05d6ccc4baad894ab))

### [2.4.1](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.4.0...v2.4.1) (2020-09-06)


### Bug Fixes

* remove console.log from dist ([be23440](https://github.com/calebdwilliams/adoptedStyleSheets/commit/be234402d36c6eaf17b57457ed7964f03e17a403))

## [2.4.0](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.5...v2.4.0) (2020-08-19)


### Features

* remove [@import](https://github.com/import) support per new behavior in Chrome ([8fa34a9](https://github.com/calebdwilliams/adoptedStyleSheets/commit/8fa34a99c73554e0b1818e895c4d4a6252f9e081))


### Bug Fixes

* remove styles properly ([4d5709f](https://github.com/calebdwilliams/adoptedStyleSheets/commit/4d5709ffde6aa7fb116769e798d84947d6739727))

### [2.3.5](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.4...v2.3.5) (2020-02-06)

### [2.3.4](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.3...v2.3.4) (2020-02-06)

### [2.3.3](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.2...v2.3.3) (2020-02-06)


### Bug Fixes

* **polyfill:** Fix a race condition with adopting stylesheets in Firefox ([15ce973](https://github.com/calebdwilliams/adoptedStyleSheets/commit/15ce973))

### [2.3.2](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.1...v2.3.2) (2019-11-20)

### [2.3.1](https://github.com/calebdwilliams/adoptedStyleSheets/compare/v2.3.0...v2.3.1) (2019-11-16)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Constructible style sheets polyfill

[![Status](https://api.travis-ci.org/calebdwilliams/construct-style-sheets.svg?branch=master)](https://travis-ci.org/calebdwilliams/construct-style-sheets)
[![CI](https://github.com/calebdwilliams/construct-style-sheets/actions/workflows/ci/badge.svg)](https://github.com/calebdwilliams/construct-style-sheets/actions)
[![npm version](https://img.shields.io/npm/v/construct-style-sheets-polyfill.svg?style=flat)](https://npmjs.org/package/construct-style-sheets-polyfill 'View this project on npm')
[![codecov](https://codecov.io/gh/calebdwilliams/construct-style-sheets/branch/master/graph/badge.svg)](https://codecov.io/gh/calebdwilliams/construct-style-sheets)

Expand Down Expand Up @@ -102,3 +102,6 @@ from the `element.adoptedStyleSheets` array. The behavior here is supposed to
emulate a `FrozenArray`, so modifying the array in question will have no effect
until the value is changed using a setter.

## A note about versioning

This packages doesn't necessarily follow semantic versioning. As the spec is still under consideration and implementation by browser vendors, the features supported by this package will change (generally following Chrome's implementation).
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};
10 changes: 10 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,19 @@ module.exports = config => {
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'detectBrowsers'],
client: {
jasmine: {
random: false
}
},

// list of files / patterns to load in the browser
files: [
{pattern: 'test/polyfills.js', watched: false},
{pattern: 'src/index.js', watched: false},
{pattern: 'test/init-while-loading.js', watched: false},
{pattern: 'test/polyfill.test.js', watched: false},
{pattern: 'test/closed-root.test.js', watched: false}
],

// list of files / patterns to exclude
Expand Down Expand Up @@ -93,6 +100,9 @@ module.exports = config => {
detectBrowsers: {
usePhantomJS: false,
preferHeadless: true,
postDetection(availableBrowsers) {
return availableBrowsers.filter(browser => browser !== 'SafariTechPreview');
}
},

rollupPreprocessor: {
Expand Down
Loading