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

chore: deps upgrade #1732

Merged
merged 21 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
92f624a
chore: deps upgrade
shortcuts Jul 11, 2023
d295044
chore(deps): update dependency fs-extra to v11 (#1728)
renovate[bot] Jul 11, 2023
226c937
Merge branch 'main' into chore/renovateBaseBranch
shortcuts Jul 12, 2023
0d6d1cb
chore(deps): update dependency inquirer to v9 (#1729)
renovate[bot] Jul 12, 2023
9f0403a
chore(deps): update dependency @types/node to v18.16.19 (#1733)
renovate[bot] Jul 12, 2023
90c9262
chore(deps): update dependency semver to v7.5.4 (#1734)
renovate[bot] Jul 12, 2023
919b79a
chore(deps): update typescript-eslint monorepo to v5.62.0 (#1735)
renovate[bot] Jul 12, 2023
87b0339
chore(deps): update dependency @octokit/rest to v20 (#1736)
renovate[bot] Jul 12, 2023
b94f0fc
chore(deps): update dependency chalk to v5 (#1738)
renovate[bot] Jul 12, 2023
f9d36c2
chore(deps): update dependency eslint-plugin-unused-imports to v3 (#1…
renovate[bot] Jul 12, 2023
d894f7d
chore(deps): update dependency execa to v7 (#1727)
renovate[bot] Jul 12, 2023
74b2138
chore(deps): update plugin com.github.johnrengelman.shadow to v8 (#1741)
renovate[bot] Jul 12, 2023
60769b6
fix: warning
shortcuts Jul 12, 2023
154023b
chore(deps): update dependency nx to v16 (#1743)
renovate[bot] Jul 12, 2023
6b3990a
chore(deps): update dependency lerna to v7 (#1742)
renovate[bot] Jul 12, 2023
63d7171
chore(deps): update dependency rollup to v3 (#1726)
renovate[bot] Jul 12, 2023
1ee5550
chore(deps): update typescript-eslint monorepo to v6 (major) (#1737)
renovate[bot] Jul 12, 2023
9aa5992
fix tsconfig
millotp Jul 12, 2023
63bbc24
update transitives
millotp Jul 12, 2023
e29027d
add pacakge.json to the artifact
millotp Jul 12, 2023
cea710b
revert redocly
millotp Jul 12, 2023
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
15 changes: 14 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line import/no-commonjs
module.exports = {
root: true,

ignorePatterns: [
'**/node_modules',
'**/build',
Expand Down Expand Up @@ -83,6 +84,11 @@ module.exports = {

parser: '@typescript-eslint/parser',

parserOptions: {
tsconfigRootDir: __dirname,
project: './**/tsconfig.json',
},

settings: {
'import/extensions': ['.js', '.ts'],
'import/parsers': {
Expand All @@ -100,6 +106,7 @@ module.exports = {
'no-continue': 0,
'@typescript-eslint/prefer-enum-initializers': 0,
'@typescript-eslint/no-namespace': 0,
'import/dynamic-import-chunkname': 0,

'unused-imports/no-unused-imports-ts': 2,
'@typescript-eslint/no-unused-vars': 2,
Expand Down Expand Up @@ -130,6 +137,12 @@ module.exports = {
// JS client rules
{
files: ['clients/algoliasearch-client-javascript/packages/**/*.ts'],

parserOptions: {
tsconfigRootDir: __dirname,
project: './clients/algoliasearch-client-javascript/tsconfig.json'
},

rules: {
// For a wider browser support (IE>=11), we forbid those two
'no-restricted-syntax': [
Expand Down
2 changes: 1 addition & 1 deletion .github/.cache_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.36
0.0.3
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./scripts/husky/pre-commit.js
node --no-warnings ./scripts/husky/pre-commit.mjs
yarn lint-staged
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"generators/**/*.java": "docker exec -t api-clients-automation bash -lc \"yarn cli format java generators\"",
".github/**/*.yml": "yarn github-actions:lint --fix",
"*.json": "yarn fix:json",
"scripts/**/*.(js|ts)": "yarn scripts:lint --fix"
"scripts/**/*.(js|ts|mjs|cjs)": "yarn scripts:lint --fix"
}
58 changes: 36 additions & 22 deletions .redocly.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
apis:
abtesting: specs/abtesting/spec.yml
analytics: specs/analytics/spec.yml
ingestion: specs/ingestion/spec.yml
insights: specs/insights/spec.yml
monitoring: specs/monitoring/spec.yml
personalization: specs/personalization/spec.yml
query-suggestions: specs/query-suggestions/spec.yml
recommend: specs/recommend/spec.yml
search: specs/search/spec.yml
predict: specs/predict/spec.yml
abtesting:
root: specs/abtesting/spec.yml
analytics:
root: specs/analytics/spec.yml
ingestion:
root: specs/ingestion/spec.yml
insights:
root: specs/insights/spec.yml
monitoring:
root: specs/monitoring/spec.yml
rules:
security-defined: off
personalization:
root: specs/personalization/spec.yml
query-suggestions:
root: specs/query-suggestions/spec.yml
recommend:
root: specs/recommend/spec.yml
search:
root: specs/search/spec.yml
predict:
root: specs/predict/spec.yml

lint:
extends:
- recommended
extends:
- recommended

rules:
info-license: off # for now we can keep it off.
no-ambiguous-paths: off # this is out of our scope.
no-enum-type-mismatch: warn # keeping the warning since it only occur on one edge case
rules:
info-license: off # for now we can keep it off.
no-ambiguous-paths: off # this is out of our scope.
no-enum-type-mismatch: warn # keeping the warning since it only occur on one edge case

no-identical-paths: error
tag-description: error
parameter-description: error
operation-description: error
tags-alphabetical: error
no-identical-paths: error
tag-description: error
parameter-description: error
operation-description: error
tags-alphabetical: error

# this rule should only be disabled for the monitoring API, but it's not working right now.
security-defined: off
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java-library'
id 'com.vanniktech.maven.publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

repositories {
Expand Down
1 change: 1 addition & 0 deletions clients/algoliasearch-client-javascript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.env

yarn-error.log
lerna-debug.log

.yarn/*
!.yarn/releases
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import babel from '@rollup/plugin-babel';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import globals from 'rollup-plugin-node-globals';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import ts from 'rollup-plugin-typescript2';

// Org where the packages are pushed
Expand Down Expand Up @@ -274,7 +274,9 @@ export function buildConfigs(pkg) {
globals({
global: true,
}),
nodeResolve(),
nodeResolve({
preferBuiltins: true,
}),
ts({
check: checkForTypes,
tsconfig: isLiteClient ? 'lite/tsconfig.json' : 'tsconfig.json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"path": "packages/client-abtesting/dist/client-abtesting.umd.js",
"maxSize": "3.85KB"
"maxSize": "3.90KB"
},
{
"path": "packages/client-analytics/dist/client-analytics.umd.js",
Expand All @@ -34,7 +34,11 @@
},
{
"path": "packages/ingestion/dist/ingestion.umd.js",
"maxSize": "4.85KB"
"maxSize": "5.00KB"
},
{
"path": "packages/monitoring/dist/monitoring.umd.js",
"maxSize": "3.90KB"
},
{
"path": "packages/predict/dist/predict.umd.js",
Expand Down
1 change: 0 additions & 1 deletion clients/algoliasearch-client-javascript/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"packages/*"
],
"version": "independent",
"useWorkspaces": true,
"useNx": true
}
25 changes: 12 additions & 13 deletions clients/algoliasearch-client-javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name": "algoliasearch-client-javascript",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"build:all": "lerna run build ",
"build:many": "lerna run build --scope ${0:-'{@algolia/*,algoliasearch}'}",
"clean": "lerna run clean",
"build:all": "lerna run build --include-dependencies",
"build:many": "lerna run build --include-dependencies --scope ${0:-'{@algolia/*,algoliasearch}'}",
"clean": "lerna run clean --include-dependencies",
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --force-publish --yes",
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts",
"test:lint": "eslint . --ext .js,.ts",
"test:size": "bundlesize",
"test:types": "yarn tsc --noEmit"
"test:size": "bundlesize"
},
"devDependencies": {
"@babel/core": "7.22.8",
Expand All @@ -22,19 +21,19 @@
"@babel/runtime": "7.22.6",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-terser": "0.4.3",
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"@types/rollup-plugin-node-globals": "1.4.1",
"@types/semver": "7.5.0",
"bundlesize2": "0.0.31",
"execa": "5.1.1",
"lerna": "5.5.2",
"nx": "15.9.4",
"rollup": "2.79.1",
"execa": "7.1.1",
"lerna": "7.1.3",
"nx": "16.5.1",
"rollup": "3.26.2",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.35.0",
"semver": "7.5.3",
"semver": "7.5.4",
"ts-node": "10.9.1",
"typescript": "5.1.6"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"main": "dist/client-common.cjs.js",
"module": "dist/client-common.esm.node.js",
"types": "dist/index.d.ts",
Expand All @@ -20,7 +21,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"jest": "29.6.1",
"jest-environment-jsdom": "29.6.1",
"ts-jest": "29.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"devDependencies": {
"@types/node": "18.16.19",
"rollup": "2.79.1",
"rollup": "3.26.2",
"typescript": "5.1.6"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"main": "dist/requester-browser-xhr.cjs.js",
"module": "dist/requester-browser-xhr.esm.node.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +24,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"jest": "29.6.1",
"jest-environment-jsdom": "29.6.1",
"ts-jest": "29.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"main": "dist/requester-fetch.cjs.js",
"module": "dist/requester-fetch.esm.node.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +24,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"cross-fetch": "4.0.0",
"jest": "29.6.1",
"nock": "13.3.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"repository": "algolia/algoliasearch-client-javascript",
"license": "MIT",
"author": "Algolia",
"type": "module",
"main": "dist/requester-node-http.cjs.js",
"module": "dist/requester-node-http.esm.node.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +24,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "18.16.18",
"@types/node": "18.16.19",
"jest": "29.6.1",
"nock": "13.3.1",
"ts-jest": "29.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buildConfigs } from '../../base.rollup.config';
import { buildConfigs } from '../../base.rollup.config.js';

import pkg from './package.json';
import pkg from './package.json' assert { type: 'json' };

export default buildConfigs(pkg);
Loading