Skip to content

Commit

Permalink
Upgrade dev dependencies (#45)
Browse files Browse the repository at this point in the history
* updated dev deps: @web*

* upgraded dev dep lit-analyzer to ^2

* upgraded dev dev @custom-elements-manifest/analyzer to ^0.9.2

* upgraded dev dep @open-wc/testing to ^4

* upgraded dev dep deepmerge to ^4.3.1

* upgraded dev dep @esm-bundle/chai to ^4.3.4

* upgraded dev dep rollup and related deps

* renamed rollup.config.js -> rollup.config.mjs

* upgraded dev dep rollup to ^4.12.0

* Revert "upgraded dev dep rollup to ^4.12.0"

This reverts commit 855291d.

* upgraded dev dep rimraf to ^5.0.5

* upgraded dev deps @types/* minus mocha

* upgraded dev deps mocha & @types/mocha to latest

* upgraded dev dep prettier to latest

* upgraded dev dep @custom-elements-manifest/analyzer (patch)

* upgraded dev dep np to latest

* upgraded lint-staged to latest

* added prettier ignore file to ignore docs dir

* upgraded dev dep husky to latest

* updated husky related config for v9 compatibility

* updated docs: clarify d3 as peer dependency

* rebuild docs dir

* formatted code with latest prettier
  • Loading branch information
clhenrick authored Mar 2, 2024
1 parent 9d0cf2e commit c5591b3
Show file tree
Hide file tree
Showing 36 changed files with 8,068 additions and 11,884 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Node.js CI"

env:
HUSKY: 0
CI: true

on:
push:
branches: [ main ]
Expand Down
6 changes: 6 additions & 0 deletions .husky/install.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Skip Husky install in production and CI
if (process.env.NODE_ENV === "production" || process.env.CI === "true") {
process.exit(0);
}
const husky = (await import("husky")).default;
console.log(husky());
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs
2 changes: 1 addition & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 2 additions & 2 deletions docs-src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Color Legend Element

### <a class="anchor" id="dependencies" href="#dependencies" aria-hidden="true">#</a> Dependencies

The `<color-legend>` assumes D3JS is available as a dependency. At the very least this should include the following modules from the D3JS library: `d3-scale`, `d3-array`, `d3-format`, `d3-interpolate`, and `d3-scale-chromatic` (if using one of d3's color scheme interpolators).
The `<color-legend>` assumes D3JS is available as a _peer dependency_. At the very least this should include the following modules from the D3JS library: `d3-scale`, `d3-array`, `d3-format`, `d3-interpolate`, and `d3-scale-chromatic` (if using one of d3's color scheme interpolators).

### <a class="anchor" id="install-npm" href="#install-npm" aria-hidden="true">#</a> NPM

Expand Down Expand Up @@ -129,7 +129,7 @@ The continuous legend may also be altered by providing an interpolator function,

```js
document.querySelector(
"color-legend.continuous-with-interpolator"
"color-legend.continuous-with-interpolator",
).interpolator = d3.interpolateTurbo;
```

Expand Down
15 changes: 15 additions & 0 deletions docs/assets/@webcomponents/webcomponentsjs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ Versioning](https://semver.org/spec/v2.0.0.html).

<!-- ## [Unreleased] -->

## [2.8.0] - 2023-03-30

- Update dependencies ([#542](https://github.com/webcomponents/polyfills/pull/542))
- Polyfill `Element.toggleAttribute()`. ([#541](https://github.com/webcomponents/polyfills/pull/541))

## [2.7.0] - 2022-10-20

- Polyfill `addEventListener/removeEventListener` event listener options,
including `{capture: boolean, once: boolean}`.
([#469](https://github.com/webcomponents/polyfills/pull/469))
- Make `webcomponents-loader.js` compatible with the Trusted Types API
([#501](https://github.com/webcomponents/polyfills/pull/501))
- Remove an arrow function in `webcomponents-loader.js`.
([#507](https://github.com/webcomponents/polyfills/pull/507))

## [2.6.0] - 2021-08-02

- Add TS externs. ([#457](https://github.com/webcomponents/polyfills/pull/457))
Expand Down
13 changes: 13 additions & 0 deletions docs/assets/@webcomponents/webcomponentsjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ For example:
</script>
```

This property is used to build the URL to the selected bundle, so you should
only set it to values that are unable to be influenced by user-controlled data.
If trusted types are enforced, this property should be a `TrustedScriptURL`.

#### Synchronous

When loaded synchronously, `webcomponents-loader.js` behaves similarly to `webcomponents-bundle.js`.
Expand Down Expand Up @@ -157,6 +161,15 @@ Here's a more complicated example:
<script type="module"></script>
```

#### Trusted Types

If you're using the loader on a page that enforces the `trusted-types` Content
Security Policy, you'll need to allow the `webcomponents-loader` policy name so
that the loader can dynamically create and insert a `<script>` for the polyfill
bundle it selects based on feature detection. If you set `WebComponents.root`
(which is rare), it should be set to a `TrustedScriptURL` for Trusted Types
compatibility.

### WebComponentsReady event

The `WebComponentsReady` event is fired when polyfills and user scripts have loaded and custom elements have been upgraded. This event is generally not needed; however, it may be useful in some cases like testing. If imperative code should wait until a specific custom element definition has loaded, it can use the platform `customElements.whenDefined` API.
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

364 changes: 188 additions & 176 deletions docs/assets/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

299 changes: 155 additions & 144 deletions docs/assets/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions docs/assets/@webcomponents/webcomponentsjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webcomponents/webcomponentsjs",
"version": "2.6.0",
"version": "2.8.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -38,15 +38,14 @@
"shim"
],
"devDependencies": {
"@webcomponents/custom-elements": "^1.5.0",
"@webcomponents/shadycss": "^1.11.0",
"@webcomponents/shadydom": "^1.9.0",
"@webcomponents/template": "^1.5.0",
"@webcomponents/url": "^0.7.8",
"@webcomponents/custom-elements": "^1.6.0",
"@webcomponents/shadycss": "^1.11.2",
"@webcomponents/shadydom": "^1.11.0",
"@webcomponents/template": "^1.5.1",
"@webcomponents/url": "^0.7.9",
"babel-preset-minify": "^0.4.3",
"get-own-property-symbols": "^0.9.2",
"gulp-concat": "^2.6.1",
"promise-polyfill": "^8.0.0"
},
"gitHead": "966c28a79fcd46dedc4367be6b93404565ab9cf6"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
*/

import '../platform/custom-event.js';
import '../platform/event-listener-options.js';
import '../platform/baseuri.js';
import '../platform/get-attribute-names.js';
import '../platform/matches.js';
import '../platform/parent-node/index.js';
import '../platform/child-node/index.js';
import '../platform/svg-element-class-list.js';
import '../platform/toggle-attribute.js';

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ declare global {
};
noPatch: boolean | string;
patchElementProto: (node: Object) => void;
querySelectorImplementation?: 'native' | 'selectorEngine';
wrap: (node: Node) => Node;
}

Expand Down
Loading

0 comments on commit c5591b3

Please sign in to comment.