Skip to content

Commit

Permalink
update ts across packages (#1034)
Browse files Browse the repository at this point in the history
* first pass

* 2nd pass

* update gu package versions

* update lockfile

* Remove random test

* reinstate test

* update changelogs

* Apply suggestions from code review

* Update tools/nx-plugins/npm-package/package.json

* Delete tools/nx-plugins/npm-package/CHANGELOG.md
  • Loading branch information
joecowton1 authored Dec 19, 2023
1 parent 55d5aa9 commit c7790d3
Show file tree
Hide file tree
Showing 38 changed files with 2,162 additions and 760 deletions.
6 changes: 6 additions & 0 deletions libs/@guardian/ab-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/ab-core

## 7.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

## 6.0.0

### Major Changes
Expand Down
10 changes: 5 additions & 5 deletions libs/@guardian/ab-core/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@guardian/ab-core",
"version": "6.0.0",
"version": "7.0.0",
"private": false,
"description": "A client-side library for A/B & multivariate testing",
"license": "Apache-2.0",
"sideEffects": false,
"devDependencies": {
"tslib": "2.4.1",
"typescript": "5.1.3"
"tslib": "2.6.2",
"typescript": "5.3.3"
},
"peerDependencies": {
"tslib": "^2.4.1",
"typescript": "~5.1.3"
"tslib": "^2.6.2",
"typescript": "~5.3.3"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
9 changes: 9 additions & 0 deletions libs/@guardian/ab-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @guardian/ab-react

## 8.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

- Updated dependencies
- @guardian/ab-core@7.0.0

## 7.0.0

### Major Changes
Expand Down
14 changes: 7 additions & 7 deletions libs/@guardian/ab-react/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "@guardian/ab-react",
"version": "7.0.0",
"version": "8.0.0",
"private": false,
"description": "A React library for A/B & multivariate testing",
"license": "Apache-2.0",
"sideEffects": false,
"devDependencies": {
"@emotion/react": "11.11.1",
"@guardian/ab-core": "6.0.0",
"@guardian/ab-core": "7.0.0",
"@testing-library/react": "14.1.2",
"@types/react": "18.2.11",
"react": "18.2.0",
"react-dom": "18.2.0",
"tslib": "2.5.3",
"typescript": "5.1.3"
"tslib": "2.6.2",
"typescript": "5.3.3"
},
"peerDependencies": {
"@guardian/ab-core": "^6.0.0",
"@guardian/ab-core": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.5.3",
"typescript": "~5.1.3"
"tslib": "^2.6.2",
"typescript": "~5.3.3"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
6 changes: 6 additions & 0 deletions libs/@guardian/browserslist-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/browserslist-config

## 6.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

## 5.1.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions libs/@guardian/browserslist-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/browserslist-config",
"version": "5.1.0",
"version": "6.0.0",
"description": "Browserslist config for Guardian websites",
"main": "browserslist.js",
"scripts": {
Expand All @@ -9,11 +9,11 @@
"devDependencies": {
"@guardian/browserslist-config": "workspace:*",
"browserslist": "4.22.2",
"tslib": "2.5.3"
"tslib": "2.6.2"
},
"peerDependencies": {
"browserslist": "^4.22.2",
"tslib": "^2.5.3"
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 9 additions & 0 deletions libs/@guardian/core-web-vitals/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @guardian/core-web-vitals

## 6.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

- Updated dependencies
- @guardian/libs@16.0.0

## 5.1.0

### Minor Changes
Expand Down
18 changes: 9 additions & 9 deletions libs/@guardian/core-web-vitals/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "@guardian/core-web-vitals",
"version": "5.1.0",
"version": "6.0.0",
"private": false,
"description": "Methods to help with the implementation of Google's Core Web Vitals",
"sideEffects": false,
"devDependencies": {
"@guardian/libs": "15.0.0",
"tslib": "2.5.3",
"typescript": "5.1.3",
"web-vitals": "3.0.0"
"@guardian/libs": "16.0.0",
"tslib": "2.6.2",
"typescript": "5.3.3",
"web-vitals": "3.5.0"
},
"peerDependencies": {
"@guardian/libs": "^15.0.0",
"tslib": "^2.5.3",
"typescript": "~5.1.3",
"web-vitals": "^3.0.0"
"@guardian/libs": "^16.0.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3",
"web-vitals": "^3.5.0"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
14 changes: 7 additions & 7 deletions libs/@guardian/core-web-vitals/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Metric, ReportHandler } from 'web-vitals';
import type { MetricType, ReportHandler } from 'web-vitals';
import type { CoreWebVitalsPayload } from './@types/CoreWebVitalsPayload';
import { _, bypassCoreWebVitalsSampling, initCoreWebVitals } from './index';

Expand All @@ -23,37 +23,37 @@ jest.mock('web-vitals', () => ({
onReport({
value: defaultCoreWebVitalsPayload.ttfb,
name: 'TTFB',
} as Metric);
} as MetricType);
},
onFCP: (onReport: ReportHandler) => {
onReport({
value: defaultCoreWebVitalsPayload.fcp,
name: 'FCP',
} as Metric);
} as MetricType);
},
onCLS: (onReport: ReportHandler) => {
onReport({
value: defaultCoreWebVitalsPayload.cls,
name: 'CLS',
} as Metric);
} as MetricType);
},
onFID: (onReport: ReportHandler) => {
onReport({
value: defaultCoreWebVitalsPayload.fid,
name: 'FID',
} as Metric);
} as MetricType);
},
onLCP: (onReport: ReportHandler) => {
onReport({
value: defaultCoreWebVitalsPayload.lcp,
name: 'LCP',
} as Metric);
} as MetricType);
},
onINP: (onReport: ReportHandler) => {
onReport({
value: defaultCoreWebVitalsPayload.inp,
name: 'INP',
} as Metric);
} as MetricType);
},
}));

Expand Down
9 changes: 9 additions & 0 deletions libs/@guardian/eslint-config-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @guardian/eslint-config-typescript

## 9.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

- Updated dependencies
- @guardian/eslint-config@7.0.0

## 8.0.1

### Patch Changes
Expand Down
20 changes: 10 additions & 10 deletions libs/@guardian/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "@guardian/eslint-config-typescript",
"version": "8.0.1",
"version": "9.0.0",
"description": "ESLint config for Guardian TypeScript projects",
"main": "index.js",
"dependencies": {
"@guardian/eslint-config": "workspace:*",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.0"
"eslint-plugin-import": "2.29.1"
},
"devDependencies": {
"eslint": "8.47.0",
"tslib": "2.5.3",
"typescript": "5.1.3"
"eslint": "8.56.0",
"tslib": "2.6.2",
"typescript": "5.3.3"
},
"peerDependencies": {
"eslint": "^8.47.0",
"tslib": "^2.5.3",
"typescript": "~5.1.3"
"eslint": "^8.56.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3"
}
}
6 changes: 6 additions & 0 deletions libs/@guardian/eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/eslint-config

## 7.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

## 6.0.0

### Major Changes
Expand Down
12 changes: 6 additions & 6 deletions libs/@guardian/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@guardian/eslint-config",
"version": "6.0.0",
"version": "7.0.0",
"description": "ESLint config for Guardian JavaScript projects",
"main": "index.js",
"dependencies": {
"eslint-config-prettier": "9.1.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.29.0"
"eslint-plugin-import": "2.29.1"
},
"devDependencies": {
"eslint": "8.47.0",
"tslib": "^2.5.3"
"eslint": "8.56.0",
"tslib": "^2.6.2"
},
"peerDependencies": {
"eslint": "^8.47.0",
"tslib": "^2.5.3"
"eslint": "^8.56.0",
"tslib": "^2.6.2"
}
}
10 changes: 10 additions & 0 deletions libs/@guardian/eslint-plugin-source-foundations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @guardian/eslint-plugin-source-foundations

## 17.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

- Updated dependencies
- @guardian/source-foundations@14.0.0
- @guardian/libs@16.0.0

## 16.0.1

### Patch Changes
Expand Down
32 changes: 16 additions & 16 deletions libs/@guardian/eslint-plugin-source-foundations/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@guardian/eslint-plugin-source-foundations",
"version": "16.0.1",
"version": "17.0.0",
"description": "ESLint plugin for Guardian projects using the `@guardian/source-foundations` package.",
"dependencies": {
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"eslint-plugin-import": "2.29.0"
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"eslint-plugin-import": "2.29.1"
},
"devDependencies": {
"@guardian/libs": "15.4.0",
"@guardian/source-foundations": "13.0.0",
"@types/eslint": "8.44.7",
"@types/estree": "1.0.1",
"eslint": "8.47.0",
"tslib": "2.5.3",
"typescript": "5.1.3"
"@guardian/libs": "16.0.0",
"@guardian/source-foundations": "14.0.0",
"@types/eslint": "8.44.9",
"@types/estree": "1.0.5",
"eslint": "8.56.0",
"tslib": "2.6.2",
"typescript": "5.3.3"
},
"peerDependencies": {
"@guardian/libs": "^15.4.0",
"@guardian/source-foundations": "^13.0.0",
"eslint": "^8.47.0",
"tslib": "^2.5.3",
"typescript": "~5.1.3"
"@guardian/libs": "^16.0.0",
"@guardian/source-foundations": "^14.0.0",
"eslint": "^8.56.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
10 changes: 10 additions & 0 deletions libs/@guardian/eslint-plugin-source-react-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @guardian/eslint-plugin-source-react-components

## 21.0.0

### Major Changes

- Update TS to version 5.3.3 and tslib to 2.6.2

- Updated dependencies
- @guardian/source-react-components@18.0.0
- @guardian/libs@16.0.0

## 20.0.1

### Patch Changes
Expand Down
Loading

0 comments on commit c7790d3

Please sign in to comment.