Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Aug 24, 2022
2 parents 91b304a + 4ca38ae commit 1eea0f5
Show file tree
Hide file tree
Showing 78 changed files with 7,723 additions and 3,172 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.vscode
node_modules

# Log files
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

### v3.0.0-rc.0 (2022-07-26)

- **[BREAKING]** Update naming of Metric object enums to be consistent ([#247](https://github.com/GoogleChrome/web-vitals/pull/247))
- Update the metric ID prefix for v3 ([#251](https://github.com/GoogleChrome/web-vitals/pull/251))
- Move the Navigation Timing API polyfill to the base+polyfill build ([#248](https://github.com/GoogleChrome/web-vitals/pull/248))
- Add a metric rating property ([#246](https://github.com/GoogleChrome/web-vitals/pull/246))
- Add a URL property to LCP attribution ([#244](https://github.com/GoogleChrome/web-vitals/pull/244))
- Add deprecation notices for base+polyfill builds ([#242](https://github.com/GoogleChrome/web-vitals/pull/242))
- Add a new attribution build for debugging issues in the field ([#237](https://github.com/GoogleChrome/web-vitals/pull/237))
- Add support for prerendered pages ([#233](https://github.com/GoogleChrome/web-vitals/pull/233))
- Update `onINP()` to also observe `first-input` entries ([#232](https://github.com/GoogleChrome/web-vitals/pull/232))

### v3.0.0-beta.2 (2022-05-11)

- Ensure all deprecated symbols are annotated ([#227](https://github.com/GoogleChrome/web-vitals/pull/227))
- Alias, deprecate, and re-export `ReportCallback` as `ReportHandler`, so it's no longer a breaking change ([#227](https://github.com/GoogleChrome/web-vitals/pull/227))

### v3.0.0-beta.1 (2022-05-11)

- **[BREAKING]** Add a config object param to all metric functions ([#225](https://github.com/GoogleChrome/web-vitals/pull/225))
- **[BREAKING]** Rename the `ReportHandler` type to `ReportCallback` ([#225](https://github.com/GoogleChrome/web-vitals/pull/225))
- Fix `getTTFB()` not properly aliased to `onTTFB()` ([#226](https://github.com/GoogleChrome/web-vitals/pull/226))

### v3.0.0-beta.0 (2022-04-25)

- **[BREAKING]** Report TTFB after a bfcache restore ([#220](https://github.com/GoogleChrome/web-vitals/pull/220))
- **[BREAKING]** Only include last LCP entry in metric entries ([#218](https://github.com/GoogleChrome/web-vitals/pull/218))
- Add support for the new INP metric ([#221](https://github.com/GoogleChrome/web-vitals/pull/221))
- Rename `getXXX()` functions to `onXXX()` ([#222](https://github.com/GoogleChrome/web-vitals/pull/222))
- Add a `navigationType` property to the Metric object ([#219](https://github.com/GoogleChrome/web-vitals/pull/219))

### v2.1.4 (2022-01-20)

- Prevent TTFB from reporting after bfcache restore ([#201](https://github.com/GoogleChrome/web-vitals/pull/201))
Expand Down
798 changes: 635 additions & 163 deletions README.md

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions attribution.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

export * from './dist/modules/attribution.js';
18 changes: 18 additions & 0 deletions attribution.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Creates the `web-vitals/attribution` import in node-based bundlers.
// This will not be needed when export maps are widely supported.
export * from './dist/web-vitals.attribution.js';
66 changes: 65 additions & 1 deletion base.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,65 @@
export * from './dist/modules/index.js';
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onCLS,
} from './dist/modules/index.js';

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onFCP,
} from './dist/modules/index.js';

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onFID,
} from './dist/modules/index.js';

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onINP,
} from './dist/modules/index.js';

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onLCP,
} from './dist/modules/index.js';

export {
/**
* @deprecated The "base+polyfill" build is deprecated.
* See: https://bit.ly/3aqzsGm
*/
onTTFB,
} from './dist/modules/index.js';

export * from './dist/modules/deprecated.js';
export * from './dist/modules/types.js';
15 changes: 15 additions & 0 deletions base.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Creates the `web-vitals/base` import in node-based bundlers.
// This will not be needed when export maps are widely supported.
export * from './dist/web-vitals.base.js';
Loading

0 comments on commit 1eea0f5

Please sign in to comment.