Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump TypeScript to v5.5.2 in all packages #1593

Merged
merged 5 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"bumpVersionsWithWorkspaceProtocolOnly": false,
"ignore": ["github-pages", "@configs/*", "coverage"],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
Expand Down
5 changes: 0 additions & 5 deletions .changeset/lazy-beers-wave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-squids-protect.md

This file was deleted.

2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# This hoists youtube types to the root node_modules folder so they are discoverable
# from anywhere.
public-hoist-pattern[]=@types/youtube
link-workspace-packages=false
link-workspace-packages=true
2 changes: 1 addition & 1 deletion apps/github-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@guardian/libs": "workspace:*",
"astro": "4.10.3",
"svelte": "4.2.12",
"typescript": "5.3.3",
"typescript": "5.5.2",
"wireit": "0.14.4"
},
"wireit": {
Expand Down
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

## 8.0.0

### Major Changes

- e5b15dc: Update TypeScript support to `v5.5.2`.

## 7.0.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions libs/@guardian/ab-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/ab-core",
"version": "7.0.3",
"version": "8.0.0",
"private": false,
"description": "A client-side library for A/B & multivariate testing",
"license": "Apache-2.0",
Expand Down Expand Up @@ -32,12 +32,12 @@
"rollup": "4.18.0",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.5.2",
"wireit": "0.14.4"
},
"peerDependencies": {
"tslib": "^2.6.2",
"typescript": "~5.3.3"
"typescript": "~5.5.2"
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
11 changes: 11 additions & 0 deletions libs/@guardian/ab-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @guardian/ab-react

## 9.0.0

### Major Changes

- e5b15dc: Update TypeScript support to `v5.5.2`.

### Patch Changes

- Updated dependencies [e5b15dc]
- @guardian/[email protected]

## 8.0.2

### Patch Changes
Expand Down
30 changes: 25 additions & 5 deletions libs/@guardian/ab-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/ab-react",
"version": "8.0.2",
"version": "9.0.0",
"private": false,
"description": "A React library for A/B & multivariate testing",
"license": "Apache-2.0",
Expand All @@ -26,7 +26,7 @@
"verify-dist": "wireit"
},
"devDependencies": {
"@guardian/ab-core": "7.0.0",
"@guardian/ab-core": "8.0.0",
"@testing-library/react": "14.2.1",
"@types/jest": "29.5.8",
"@types/react": "18.2.11",
Expand All @@ -37,16 +37,16 @@
"rollup": "4.18.0",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.5.2",
"wireit": "0.14.4"
},
"peerDependencies": {
"@guardian/ab-core": "^7.0.0",
"@guardian/ab-core": "^8.0.0",
"@types/react": "^18.2.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3"
"typescript": "~5.5.2"
},
"peerDependenciesMeta": {
"@types/react": {
Expand All @@ -60,8 +60,16 @@
"access": "public"
},
"wireit": {
"__deps__": {
"dependencies": [
"../ab-core:build"
]
},
"build": {
"command": "rollup -c",
"dependencies": [
"__deps__"
],
"files": [
"src/**",
"package.json",
Expand All @@ -75,6 +83,9 @@
},
"fix": {
"command": "eslint --cache --color . --fix",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../.eslint*",
Expand All @@ -88,6 +99,9 @@
},
"lint": {
"command": "eslint --cache --color .",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../.eslint*",
Expand All @@ -98,6 +112,9 @@
},
"test": {
"command": "jest",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../configs/jest.*",
Expand All @@ -108,6 +125,9 @@
},
"tsc": {
"command": "tsc --pretty",
"dependencies": [
"__deps__"
],
"files": [
"**",
"tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion libs/@guardian/cobalt-plugin-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@cobalt-ui/plugin-js": "^1.4.3",
"@cobalt-ui/utils": "^1.2.2",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.5.2",
"wireit": "0.14.4"
},
"peerDependencies": {
Expand Down
16 changes: 16 additions & 0 deletions libs/@guardian/core-web-vitals/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @guardian/core-web-vitals

## 7.0.0

### Major Changes

- 4de52e7: This major change adds attribution data on 3 core web vital metrics; CLS, INP, and LCP.
- It also updates the endpoint so that this data will now be sent to a new table in big query. We now send the stage as a value to big query, rather than using separate endpoints.
- In addition, null values have been removed in favour of undefined.
- It also updates the version of `web-vitals` required to `v4.2.1`.
- e5b15dc: Update TypeScript support to `v5.5.2`.

### Patch Changes

- Updated dependencies [a5498b8]
- Updated dependencies [e5b15dc]
- @guardian/[email protected]

## 6.0.1

### Patch Changes
Expand Down
34 changes: 27 additions & 7 deletions libs/@guardian/core-web-vitals/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/core-web-vitals",
"version": "6.0.1",
"version": "7.0.0",
"private": false,
"description": "Methods to help with the implementation of Google's Core Web Vitals",
"sideEffects": false,
Expand All @@ -25,22 +25,22 @@
"verify-dist": "wireit"
},
"devDependencies": {
"@guardian/libs": "16.0.0",
"@guardian/libs": "18.0.0",
"@types/jest": "29.5.8",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"rollup": "4.18.0",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"web-vitals": "4.2.0",
"typescript": "5.5.2",
"web-vitals": "4.2.1",
"wireit": "0.14.4"
},
"peerDependencies": {
"@guardian/libs": "^16.0.0",
"@guardian/libs": "^18.0.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3",
"web-vitals": "^4.2.0"
"typescript": "~5.5.2",
"web-vitals": "^4.2.1"
},
"peerDependenciesMeta": {
"typescript": {
Expand All @@ -51,8 +51,16 @@
"access": "public"
},
"wireit": {
"__deps__": {
"dependencies": [
"../libs:build"
]
},
"build": {
"command": "rollup -c",
"dependencies": [
"__deps__"
],
"files": [
"src/**",
"package.json",
Expand All @@ -66,6 +74,9 @@
},
"fix": {
"command": "eslint --cache --color . --fix",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../.eslint*",
Expand All @@ -79,6 +90,9 @@
},
"lint": {
"command": "eslint --cache --color .",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../.eslint*",
Expand All @@ -89,6 +103,9 @@
},
"test": {
"command": "jest",
"dependencies": [
"__deps__"
],
"files": [
"**",
"../../../configs/jest.*",
Expand All @@ -99,6 +116,9 @@
},
"tsc": {
"command": "tsc --pretty",
"dependencies": [
"__deps__"
],
"files": [
"**",
"tsconfig.json",
Expand Down
8 changes: 4 additions & 4 deletions libs/@guardian/core-web-vitals/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TeamName } from '@guardian/libs';
import type { Subscription } from '@guardian/libs';
import { log } from '@guardian/libs';
import type {
CLSMetricWithAttribution,
Expand All @@ -15,7 +15,7 @@ const endpoint = 'https://feast-events.guardianapis.com/web-vitals';

const coreWebVitalsPayload: Partial<CoreWebVitalsPayload> = {};

const teamsForLogging: Set<TeamName> = new Set();
const teamsForLogging: Set<Subscription> = new Set();
let initialised = false;

let queued = false;
Expand Down Expand Up @@ -122,7 +122,7 @@ type InitCoreWebVitalsOptions = {
pageViewId?: string;

sampling?: number;
team?: TeamName;
team?: Subscription;
};

/**
Expand Down Expand Up @@ -197,7 +197,7 @@ export const initCoreWebVitals = async ({
* @param team - Optional team to trigger a log event once metrics are queued.
*/
export const bypassCoreWebVitalsSampling = async (
team?: TeamName,
team?: Subscription,
): Promise<void> => {
if (!initialised) {
console.warn('initCoreWebVitals not yet initialised');
Expand Down
6 changes: 6 additions & 0 deletions libs/@guardian/eslint-config-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @guardian/eslint-config-typescript

## 11.0.0

### Major Changes

- e5b15dc: Update TypeScript support to `v5.5.2`.

## 10.0.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions libs/@guardian/eslint-config-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guardian/eslint-config-typescript",
"version": "10.0.1",
"version": "11.0.0",
"description": "ESLint config for Guardian TypeScript projects",
"main": "index.js",
"scripts": {
Expand All @@ -18,13 +18,13 @@
"devDependencies": {
"eslint": "8.56.0",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.5.2",
"wireit": "0.14.4"
},
"peerDependencies": {
"eslint": "^8.56.0",
"tslib": "^2.6.2",
"typescript": "~5.3.3"
"typescript": "~5.5.2"
},
"wireit": {
"lint": {
Expand Down
13 changes: 13 additions & 0 deletions libs/@guardian/identity-auth-frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @guardian/identity-auth-frontend

## 5.0.0

### Major Changes

- e5b15dc: Update TypeScript support to `v5.5.2`.

### Patch Changes

- Updated dependencies [a5498b8]
- Updated dependencies [e5b15dc]
- @guardian/[email protected]
- @guardian/[email protected]

## 4.0.1

### Patch Changes
Expand Down
Loading