Skip to content

Commit aa666de

Browse files
chore(deps): dependencies 2024-11-04 (#2335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 6579023 commit aa666de

File tree

84 files changed

+25311
-20399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+25311
-20399
lines changed

.circleci/config.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
version: 2.1
22

33
aliases:
4-
- &install_yarn_version
5-
name: Install specific Yarn version
6-
command: |
7-
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.5
8-
echo 'export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"' >> $BASH_ENV
9-
104
- &restore_yarn_cache
115
name: Restore Yarn cache
126
keys:
@@ -16,11 +10,12 @@ aliases:
1610
name: Save Yarn cache
1711
key: yarn-packages-{{ checksum "yarn.lock" }}
1812
paths:
19-
- ~/.cache/yarn
13+
- .yarn/cache
14+
- .yarn/unplugged
2015

2116
- &run_yarn_install
2217
name: Install dependencies
23-
command: yarn install --frozen-lockfile
18+
command: yarn install --immutable
2419

2520
- &restore_dist_folders
2621
name: Restore dist folders
@@ -59,7 +54,6 @@ jobs:
5954
<<: *defaults
6055
steps:
6156
- checkout
62-
- run: *install_yarn_version
6357
- restore_cache: *restore_yarn_cache
6458
- run: *run_yarn_install
6559
- save_cache: *save_yarn_cache
@@ -88,7 +82,6 @@ jobs:
8882
steps:
8983
- checkout
9084
- *attach_workspace
91-
- run: *install_yarn_version
9285
- restore_cache: *restore_yarn_cache
9386
- run: *run_yarn_install
9487
- save_cache: *save_yarn_cache
@@ -101,7 +94,6 @@ jobs:
10194
steps:
10295
- checkout
10396
- *attach_workspace
104-
- run: *install_yarn_version
10597
- restore_cache: *restore_yarn_cache
10698
- run: *run_yarn_install
10799
- save_cache: *save_yarn_cache
@@ -114,7 +106,6 @@ jobs:
114106
steps:
115107
- checkout
116108
- *attach_workspace
117-
- run: *install_yarn_version
118109
- restore_cache: *restore_yarn_cache
119110
- run: *run_yarn_install
120111
- save_cache: *save_yarn_cache
@@ -127,20 +118,18 @@ jobs:
127118
steps:
128119
- checkout
129120
- *attach_workspace
130-
- run: *install_yarn_version
131121
- restore_cache: *restore_yarn_cache
132122
- run: *run_yarn_install
133123
- save_cache: *save_yarn_cache
134124
- run: *restore_dist_folders
135125
- run:
136126
name: Unit tests
137-
command: yarn run test --maxWorkers=4
127+
command: yarn run test
138128
release:
139129
<<: *defaults
140130
steps:
141131
- checkout
142132
- *attach_workspace
143-
- run: *install_yarn_version
144133
- restore_cache: *restore_yarn_cache
145134
- run: *run_yarn_install
146135
- save_cache: *save_yarn_cache

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ dist/
2222
# Cypress Video and Screenshots output
2323
cypress/screenshots/
2424
cypress/videos/
25+
26+
**/.yarn/*
27+
!**/.yarn/releases
28+
!**/.yarn/plugins
29+
!**/.yarn/patches

.stylelintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"stylelint-config-standard",
88
"stylelint-config-sass-guidelines",
99
"stylelint-order",
10-
"stylelint-a11y/recommended",
1110
"stylelint-prettier/recommended"
1211
],
1312
"rules": {
@@ -33,4 +32,4 @@
3332
}
3433
]
3534
}
36-
}
35+
}

.yarn/releases/yarn-4.5.1.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nodeLinker: node-modules
2+
3+
enableGlobalCache: false
4+
5+
yarnPath: .yarn/releases/yarn-4.5.1.cjs

babel.config.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

bundlesize.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"path": "packages/docsearch-js/dist/umd/index.js",
13-
"maxSize": "35 kB"
13+
"maxSize": "35.05 kB"
1414
}
1515
]
1616
}

cypress/e2e/search/actions.spec.ts

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Start', () => {
3232
});
3333

3434
it('Open modal with forward slash key shortcut', () => {
35-
cy.get('body').type('/');
35+
cy.get('body').wait(1000).type('/');
3636
cy.modalIsVisibleAndFocused();
3737
});
3838
});
@@ -97,7 +97,7 @@ describe('Search', () => {
9797
const currentURL = cy.url();
9898

9999
cy.typeQueryMatching();
100-
cy.get('.DocSearch-Hits #docsearch-item-1 > a').click({ force: true });
100+
cy.get('.DocSearch-Hits #docsearch-hits0-item-1 > a').click({ force: true });
101101
cy.on('url:changed', (newUrl) => {
102102
expect(newUrl).not.equal(currentURL);
103103
});
@@ -114,38 +114,30 @@ describe('Recent and Favorites', () => {
114114
cy.visit(Cypress.config().baseUrl!);
115115
cy.openModal();
116116
cy.typeQueryMatching();
117-
cy.get('#docsearch-item-0 > a').click({ force: true }).wait(1000);
117+
cy.get('#docsearch-hits0-item-0 > a').click({ force: true }).wait(1000);
118118
cy.openModal();
119119
cy.contains('Recent').should('be.visible');
120120
});
121121

122122
it('Recent search is displayed after visiting a result', () => {
123-
cy.get('#docsearch-item-0').should('be.visible');
123+
cy.get('#docsearch-recentSearches-item-0').should('be.visible');
124124
});
125125

126126
it('Recent search can be deleted', () => {
127-
cy.get('#docsearch-item-0')
128-
.find('[title="Remove this search from history"]')
129-
.trigger('click');
127+
cy.get('#docsearch-recentSearches-item-0').find('[title="Remove this search from history"]').trigger('click');
130128
cy.contains('No recent searches').should('be.visible');
131129
});
132130

133131
it('Recent search can be favorited', () => {
134-
cy.get('#docsearch-item-0')
135-
.find('[title="Save this search"]')
136-
.trigger('click');
132+
cy.get('#docsearch-recentSearches-item-0').find('[title="Save this search"]').trigger('click');
137133
cy.contains('Favorite').should('be.visible');
138-
cy.get('#docsearch-item-0').should('be.visible');
134+
cy.get('#docsearch-favoriteSearches-item-0').should('be.visible');
139135
});
140136

141137
it('Favorite can be deleted', () => {
142-
cy.get('#docsearch-item-0')
143-
.find('[title="Save this search"]')
144-
.trigger('click');
138+
cy.get('#docsearch-recentSearches-item-0').find('[title="Save this search"]').trigger('click');
145139
cy.contains('Favorite').should('be.visible');
146-
cy.get('#docsearch-item-0')
147-
.find('[title="Remove this search from favorites"]')
148-
.trigger('click');
140+
cy.get('#docsearch-favoriteSearches-item-0').find('[title="Remove this search from favorites"]').trigger('click');
149141
cy.contains('No recent searches').should('be.visible');
150142
});
151143
});

0 commit comments

Comments
 (0)