From 06f09a265d3c9d3dee994f3fdcb245f115e840e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Fri, 17 Dec 2021 17:22:12 +0100 Subject: [PATCH] Add warning about v6.0.0 npm package deprecation to README (#6967) * Add warning about v6.0.0 npm package deprecation * Update README.md * Update README.md --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 77a93974..e7e1289f 100644 --- a/README.md +++ b/README.md @@ -70,14 +70,8 @@ Alternatively, you can also import all icons from a single file, where `[ICON SL import { siSimpleicons } from 'simple-icons/icons' ``` -You can also import the needed icons individually, where `[ICON SLUG]` is replaced by a [slug]. -```javascript -// Import a specific icon by its slug as: -// require('simple-icons/icons/[ICON SLUG]'); - -// For example: -const icon = require('simple-icons/icons/simpleicons'); -``` +> :warning: The old way of importing with `require('simple-icons/icons/[ICON SLUG]')` is deprecated and +will be removed in v7.0.0. Either method will return an icon object: