From 2f69015cce6702cb2b93458c0c98f8fedd32b9d6 Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Wed, 6 Nov 2024 18:09:21 +0100 Subject: [PATCH] fix: Rename cozy-dataproxy to cozy-dataproxy-lib We found that https://www.npmjs.com/package/cozy-data-proxy exists from an old project and NPM refuses the `cozy-dataproxy` name as it is too similar --- packages/{cozy-dataproxy => cozy-dataproxy-lib}/.babelrc | 0 .../{cozy-dataproxy => cozy-dataproxy-lib}/.gitignore | 0 .../{cozy-dataproxy => cozy-dataproxy-lib}/.npmignore | 0 .../{cozy-dataproxy => cozy-dataproxy-lib}/CHANGELOG.md | 0 packages/{cozy-dataproxy => cozy-dataproxy-lib}/README.md | 4 ++-- .../{cozy-dataproxy => cozy-dataproxy-lib}/package.json | 8 ++++---- .../{cozy-dataproxy => cozy-dataproxy-lib}/src/index.ts | 0 .../src/search/@types/cozy-client.d.ts | 0 .../src/search/@types/cozy-realtime.d.ts | 0 .../src/search/SearchEngine.spec.js | 0 .../src/search/SearchEngine.ts | 0 .../src/search/consts.ts | 0 .../src/search/helpers/client.spec.ts | 0 .../src/search/helpers/client.ts | 0 .../src/search/helpers/getSearchEncoder.ts | 0 .../src/search/helpers/normalizeFile.spec.ts | 0 .../src/search/helpers/normalizeFile.ts | 0 .../src/search/helpers/normalizeSearchResult.spec.ts | 0 .../src/search/helpers/normalizeSearchResult.ts | 0 .../src/search/queries/index.ts | 0 .../src/search/types.ts | 0 .../{cozy-dataproxy => cozy-dataproxy-lib}/tests/index.ts | 0 .../tests/jest.config.js | 0 .../tests/jest.setup.ts | 0 .../tsconfig-build.json | 0 .../{cozy-dataproxy => cozy-dataproxy-lib}/tsconfig.json | 0 26 files changed, 6 insertions(+), 6 deletions(-) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/.babelrc (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/.gitignore (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/.npmignore (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/CHANGELOG.md (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/README.md (92%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/package.json (90%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/index.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/@types/cozy-client.d.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/@types/cozy-realtime.d.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/SearchEngine.spec.js (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/SearchEngine.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/consts.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/client.spec.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/client.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/getSearchEncoder.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/normalizeFile.spec.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/normalizeFile.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/normalizeSearchResult.spec.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/helpers/normalizeSearchResult.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/queries/index.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/src/search/types.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/tests/index.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/tests/jest.config.js (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/tests/jest.setup.ts (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/tsconfig-build.json (100%) rename packages/{cozy-dataproxy => cozy-dataproxy-lib}/tsconfig.json (100%) diff --git a/packages/cozy-dataproxy/.babelrc b/packages/cozy-dataproxy-lib/.babelrc similarity index 100% rename from packages/cozy-dataproxy/.babelrc rename to packages/cozy-dataproxy-lib/.babelrc diff --git a/packages/cozy-dataproxy/.gitignore b/packages/cozy-dataproxy-lib/.gitignore similarity index 100% rename from packages/cozy-dataproxy/.gitignore rename to packages/cozy-dataproxy-lib/.gitignore diff --git a/packages/cozy-dataproxy/.npmignore b/packages/cozy-dataproxy-lib/.npmignore similarity index 100% rename from packages/cozy-dataproxy/.npmignore rename to packages/cozy-dataproxy-lib/.npmignore diff --git a/packages/cozy-dataproxy/CHANGELOG.md b/packages/cozy-dataproxy-lib/CHANGELOG.md similarity index 100% rename from packages/cozy-dataproxy/CHANGELOG.md rename to packages/cozy-dataproxy-lib/CHANGELOG.md diff --git a/packages/cozy-dataproxy/README.md b/packages/cozy-dataproxy-lib/README.md similarity index 92% rename from packages/cozy-dataproxy/README.md rename to packages/cozy-dataproxy-lib/README.md index cc57ccd964..a236e4d6d1 100644 --- a/packages/cozy-dataproxy/README.md +++ b/packages/cozy-dataproxy-lib/README.md @@ -1,4 +1,4 @@ -# Cozy-dataproxy +# Cozy-dataproxy-lib ## Concept @@ -8,7 +8,7 @@ This library is meant to be used by DataProxy apps like [cozy-web-data-proxy](ht Just run -- `yarn add cozy-dataproxy` +- `yarn add cozy-dataproxy-lib` ## API diff --git a/packages/cozy-dataproxy/package.json b/packages/cozy-dataproxy-lib/package.json similarity index 90% rename from packages/cozy-dataproxy/package.json rename to packages/cozy-dataproxy-lib/package.json index 34de6ceedb..3f380c6e83 100644 --- a/packages/cozy-dataproxy/package.json +++ b/packages/cozy-dataproxy-lib/package.json @@ -1,6 +1,6 @@ { - "name": "cozy-dataproxy", - "description": "Event-based library allowing interactions between React-Native and React applications", + "name": "cozy-dataproxy-lib", + "description": "Library meant to be by Cozy Cloud's DataProxy apps for data manipulation", "version": "1.1.0", "author": { "name": "Cozy Cloud", @@ -33,7 +33,7 @@ "files": [ "dist" ], - "homepage": "https://github.com/cozy/cozy-libs/packages/cozy-dataproxy", + "homepage": "https://github.com/cozy/cozy-libs/packages/cozy-dataproxy-lib", "keywords": [ "cozy", "cozy-libs", @@ -53,7 +53,7 @@ "repository": { "type": "git", "url": "https://github.com/cozy/cozy-libs.git", - "directory": "packages/cozy-dataproxy" + "directory": "packages/cozy-dataproxy-lib" }, "scripts": { "build": "yarn build:clean && yarn build:types && babel --extensions .ts,.tsx --ignore '**/*.spec.tsx','**/*.spec.ts','**/*.d.ts' ./src -d ./dist", diff --git a/packages/cozy-dataproxy/src/index.ts b/packages/cozy-dataproxy-lib/src/index.ts similarity index 100% rename from packages/cozy-dataproxy/src/index.ts rename to packages/cozy-dataproxy-lib/src/index.ts diff --git a/packages/cozy-dataproxy/src/search/@types/cozy-client.d.ts b/packages/cozy-dataproxy-lib/src/search/@types/cozy-client.d.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/@types/cozy-client.d.ts rename to packages/cozy-dataproxy-lib/src/search/@types/cozy-client.d.ts diff --git a/packages/cozy-dataproxy/src/search/@types/cozy-realtime.d.ts b/packages/cozy-dataproxy-lib/src/search/@types/cozy-realtime.d.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/@types/cozy-realtime.d.ts rename to packages/cozy-dataproxy-lib/src/search/@types/cozy-realtime.d.ts diff --git a/packages/cozy-dataproxy/src/search/SearchEngine.spec.js b/packages/cozy-dataproxy-lib/src/search/SearchEngine.spec.js similarity index 100% rename from packages/cozy-dataproxy/src/search/SearchEngine.spec.js rename to packages/cozy-dataproxy-lib/src/search/SearchEngine.spec.js diff --git a/packages/cozy-dataproxy/src/search/SearchEngine.ts b/packages/cozy-dataproxy-lib/src/search/SearchEngine.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/SearchEngine.ts rename to packages/cozy-dataproxy-lib/src/search/SearchEngine.ts diff --git a/packages/cozy-dataproxy/src/search/consts.ts b/packages/cozy-dataproxy-lib/src/search/consts.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/consts.ts rename to packages/cozy-dataproxy-lib/src/search/consts.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/client.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/client.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/client.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/client.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/client.ts b/packages/cozy-dataproxy-lib/src/search/helpers/client.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/client.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/client.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/getSearchEncoder.ts b/packages/cozy-dataproxy-lib/src/search/helpers/getSearchEncoder.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/getSearchEncoder.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/getSearchEncoder.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeFile.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeFile.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeFile.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeFile.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeFile.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.spec.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.spec.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.spec.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.spec.ts diff --git a/packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.ts b/packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/helpers/normalizeSearchResult.ts rename to packages/cozy-dataproxy-lib/src/search/helpers/normalizeSearchResult.ts diff --git a/packages/cozy-dataproxy/src/search/queries/index.ts b/packages/cozy-dataproxy-lib/src/search/queries/index.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/queries/index.ts rename to packages/cozy-dataproxy-lib/src/search/queries/index.ts diff --git a/packages/cozy-dataproxy/src/search/types.ts b/packages/cozy-dataproxy-lib/src/search/types.ts similarity index 100% rename from packages/cozy-dataproxy/src/search/types.ts rename to packages/cozy-dataproxy-lib/src/search/types.ts diff --git a/packages/cozy-dataproxy/tests/index.ts b/packages/cozy-dataproxy-lib/tests/index.ts similarity index 100% rename from packages/cozy-dataproxy/tests/index.ts rename to packages/cozy-dataproxy-lib/tests/index.ts diff --git a/packages/cozy-dataproxy/tests/jest.config.js b/packages/cozy-dataproxy-lib/tests/jest.config.js similarity index 100% rename from packages/cozy-dataproxy/tests/jest.config.js rename to packages/cozy-dataproxy-lib/tests/jest.config.js diff --git a/packages/cozy-dataproxy/tests/jest.setup.ts b/packages/cozy-dataproxy-lib/tests/jest.setup.ts similarity index 100% rename from packages/cozy-dataproxy/tests/jest.setup.ts rename to packages/cozy-dataproxy-lib/tests/jest.setup.ts diff --git a/packages/cozy-dataproxy/tsconfig-build.json b/packages/cozy-dataproxy-lib/tsconfig-build.json similarity index 100% rename from packages/cozy-dataproxy/tsconfig-build.json rename to packages/cozy-dataproxy-lib/tsconfig-build.json diff --git a/packages/cozy-dataproxy/tsconfig.json b/packages/cozy-dataproxy-lib/tsconfig.json similarity index 100% rename from packages/cozy-dataproxy/tsconfig.json rename to packages/cozy-dataproxy-lib/tsconfig.json