From ffa499df9a67a6faf7d331e87449ac7740bed739 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 15 Jan 2025 16:22:26 +0000 Subject: [PATCH] chore: Deprecate flagsmith-es (#281) * Deprecate flagsmith-es * Don't exit postinstall --- lib/flagsmith-es/README.md | 5 +++++ lib/flagsmith-es/package-lock.json | 5 +++-- lib/flagsmith-es/package.json | 5 ++++- lib/flagsmith/package.json | 2 +- lib/react-native-flagsmith/package.json | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 lib/flagsmith-es/README.md diff --git a/lib/flagsmith-es/README.md b/lib/flagsmith-es/README.md new file mode 100644 index 0000000..752bbd7 --- /dev/null +++ b/lib/flagsmith-es/README.md @@ -0,0 +1,5 @@ + + +# Flagsmith ESM Javascript Client + +This module is now deprecated and bundled into the [Flagsmith JS Client](https://www.npmjs.com/package/flagsmith). diff --git a/lib/flagsmith-es/package-lock.json b/lib/flagsmith-es/package-lock.json index 5150cda..486b18d 100644 --- a/lib/flagsmith-es/package-lock.json +++ b/lib/flagsmith-es/package-lock.json @@ -1,12 +1,13 @@ { "name": "flagsmith-es", - "version": "8.0.2", + "version": "8.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "flagsmith-es", - "version": "8.0.2", + "version": "8.0.3", + "hasInstallScript": true, "license": "BSD-3-Clause" } } diff --git a/lib/flagsmith-es/package.json b/lib/flagsmith-es/package.json index 658de07..5ac862a 100644 --- a/lib/flagsmith-es/package.json +++ b/lib/flagsmith-es/package.json @@ -1,9 +1,12 @@ { "name": "flagsmith-es", - "version": "8.0.2", + "version": "8.0.3", "description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.", "main": "./index.js", "type": "module", + "scripts": { + "postinstall": "echo '\u001b[31m\u001b[1mimportant: flagsmith-es is deprecated\u001b[0m\n\nplease install the official flagsmith package instead:\n\n \u001b[32m\u001b[1mnpm install flagsmith\u001b[0m\n\nfor more details, visit: https://github.com/Flagsmith/flagsmith-js-client\n'" + }, "repository": { "type": "git", "url": "https://github.com/Flagsmith/flagsmith-js-client" diff --git a/lib/flagsmith/package.json b/lib/flagsmith/package.json index 3b977c6..3d532bf 100644 --- a/lib/flagsmith/package.json +++ b/lib/flagsmith/package.json @@ -1,6 +1,6 @@ { "name": "flagsmith", - "version": "8.0.2", + "version": "8.0.3", "description": "Feature flagging to support continuous development", "main": "./index.js", "repository": { diff --git a/lib/react-native-flagsmith/package.json b/lib/react-native-flagsmith/package.json index 4e8502f..ff02319 100644 --- a/lib/react-native-flagsmith/package.json +++ b/lib/react-native-flagsmith/package.json @@ -1,6 +1,6 @@ { "name": "react-native-flagsmith", - "version": "8.0.2", + "version": "8.0.3", "description": "Feature flagging to support continuous development", "main": "./index.js", "repository": {