Skip to content

Commit

Permalink
fix(dependencies): upgrade dependencies (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jul 9, 2021
1 parent bf18c73 commit 9300cb4
Show file tree
Hide file tree
Showing 28 changed files with 3,962 additions and 1,664 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -3,3 +3,4 @@ dist
/examples
build
.cache
.parcel-cache
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@ node_modules/
*.log
coverage/
.cache
.parcel-cache

# Bundle build files
dist/
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
build
.cache
.parcel-cache
4 changes: 2 additions & 2 deletions bundlesize.config.json
Expand Up @@ -6,11 +6,11 @@
},
{
"path": "packages/docsearch-react/dist/umd/index.js",
"maxSize": "18.3 kB"
"maxSize": "19 kB"
},
{
"path": "packages/docsearch-js/dist/umd/index.js",
"maxSize": "25.9 kB"
"maxSize": "26.5 kB"
}
]
}
Binary file added examples/demo/favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions examples/demo/index.html
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />

<title>DocSearch v3 - React</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>

<script src="src/index.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions examples/demo/package.json
@@ -0,0 +1,20 @@
{
"name": "@docsearch/react-example",
"description": "DocSearch v3 React example",
"version": "3.0.0-alpha.36",
"private": true,
"license": "MIT",
"scripts": {
"build": "parcel build index.html",
"start": "parcel index.html"
},
"dependencies": {
"@docsearch/react": "3.0.0-alpha.36",
"@docsearch/css": "3.0.0-alpha.36",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"parcel": "2.0.0-beta.2"
}
}
19 changes: 19 additions & 0 deletions examples/demo/src/App.js
@@ -0,0 +1,19 @@
import React from 'react';
import { DocSearch } from '@docsearch/react';

import './app.css';
import '@docsearch/css';

function App() {
return (
<div>
<h1>DocSearch v3 - React</h1>
<DocSearch
indexName="docsearch"
apiKey="25626fae796133dc1e734c6bcaaeac3c"
/>
</div>
);
}

export default App;
4 changes: 4 additions & 0 deletions examples/demo/src/app.css
@@ -0,0 +1,4 @@
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
6 changes: 6 additions & 0 deletions examples/demo/src/index.js
@@ -0,0 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';

import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
Empty file added examples/js-demo/README.md
Empty file.
4 changes: 4 additions & 0 deletions examples/js-demo/app.css
@@ -0,0 +1,4 @@
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
10 changes: 10 additions & 0 deletions examples/js-demo/app.js
@@ -0,0 +1,10 @@
import docsearch from '@docsearch/js/dist/umd';

import './app.css';
import '@docsearch/css';

docsearch({
container: '#docsearch',
indexName: 'docsearch',
apiKey: '25626fae796133dc1e734c6bcaaeac3c',
});
Binary file added examples/js-demo/favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions examples/js-demo/index.html
@@ -0,0 +1,20 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />

<title>DocSearch v3 - Vanilla JavaScript</title>
</head>

<body>
<div class="container">
<h1>DocSearch v3 - Vanilla JavaScript</h1>

<div id="docsearch"></div>
</div>

<script src="app.js"></script>
</body>
</html>
18 changes: 18 additions & 0 deletions examples/js-demo/package.json
@@ -0,0 +1,18 @@
{
"name": "@docsearch/js-example",
"description": "DocSearch v3 Vanilla JavaScript example",
"version": "3.0.0-alpha.36",
"private": true,
"license": "MIT",
"scripts": {
"build": "parcel build index.html",
"start": "parcel index.html"
},
"dependencies": {
"@docsearch/js": "3.0.0-alpha.36",
"@docsearch/css": "3.0.0-alpha.36"
},
"devDependencies": {
"parcel": "2.0.0-beta.2"
}
}
36 changes: 0 additions & 36 deletions examples/js/index.html

This file was deleted.

21 changes: 0 additions & 21 deletions examples/js/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
@@ -1,5 +1,5 @@
{
"packages": ["packages/*"],
"packages": ["packages/*", "examples/*"],
"version": "3.0.0-alpha.36",
"npmClient": "yarn"
}
13 changes: 8 additions & 5 deletions package.json
Expand Up @@ -3,7 +3,8 @@
"private": true,
"workspaces": {
"packages": [
"packages/*"
"packages/*",
"examples/*"
],
"nohoist": [
"**/html-minifier-terser"
Expand All @@ -26,6 +27,8 @@
"lint:css": "stylelint **/src/**/*.css",
"lint": "eslint --ext .js,.ts,.tsx .",
"prepare": "lerna run prepare",
"playground:start": "yarn workspace @docsearch/react-example start",
"playground-js:start": "yarn workspace @docsearch/js-example start",
"release": "shipjs prepare",
"start": "yarn run watch",
"test:size": "bundlesize",
Expand Down Expand Up @@ -53,7 +56,7 @@
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "2.19.0",
"@typescript-eslint/parser": "2.19.0",
"algoliasearch": "4.8.0",
"algoliasearch": "4.10.3",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"babel-plugin-inline-replace-variables": "1.3.1",
Expand All @@ -76,11 +79,11 @@
"eslint-plugin-react-hooks": "2.3.0",
"jest": "26.4.2",
"jest-watch-typeahead": "0.6.0",
"lerna": "3.22.1",
"lerna": "4.0.0",
"postcss": "7.0.32",
"prettier": "2.1.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"rimraf": "3.0.2",
"rollup": "1.31.0",
"rollup-plugin-babel": "4.4.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/docsearch-react/package.json
Expand Up @@ -34,8 +34,8 @@
"watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\""
},
"dependencies": {
"@algolia/autocomplete-core": "1.0.0-alpha.44",
"@algolia/autocomplete-preset-algolia": "1.0.0-alpha.44",
"@algolia/autocomplete-core": "1.2.1",
"@algolia/autocomplete-preset-algolia": "1.2.1",
"@docsearch/css": "3.0.0-alpha.36",
"algoliasearch": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearch.tsx
Expand Up @@ -2,6 +2,7 @@ import {
AutocompleteState,
AutocompleteOptions,
} from '@algolia/autocomplete-core';
import { SearchClient } from 'algoliasearch/lite';
import React from 'react';
import { createPortal } from 'react-dom';

Expand All @@ -11,7 +12,6 @@ import {
DocSearchHit,
InternalDocSearchHit,
StoredDocSearchHit,
SearchClient,
} from './types';
import { useDocSearchKeyboardEvents } from './useDocSearchKeyboardEvents';

Expand Down

0 comments on commit 9300cb4

Please sign in to comment.