From dfcdd1dbe4e544a5689a672fea8b89376f4a1bc1 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Fri, 12 Nov 2021 12:03:22 -0300 Subject: [PATCH] chore: rename package (#143) * chore: rename package * 10.0.0 --- README.md | 12 ++++++------ collect/get-logging-paths.js | 2 +- collect/system-info.js | 2 +- debug/visualize-watch.js | 2 +- index.js | 6 +++--- package.json | 6 +++--- visualizer/filters-bar.js | 8 ++++---- visualizer/filters-content.js | 2 +- visualizer/flame-graph-tooltip-content.js | 8 ++++---- visualizer/info-box.js | 2 +- visualizer/main.js | 4 ++-- visualizer/selection-controls.js | 10 +++++----- visualizer/style.css | 6 +++--- visualizer/tooltip.js | 2 +- visualizer/ui.js | 6 +++--- visualizer/walkthrough-steps.js | 2 +- 16 files changed, 40 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 9db1f216..af7e2acc 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Programmable interface to [Clinic.js][clinic-url] Flame. Learn more about Clinic ## Installation ``` -npm i -S @nearform/flame +npm i -S @clinic/flame ``` ## Supported node versions @@ -20,7 +20,7 @@ npm i -S @nearform/flame ## Example ```js -const ClinicFlame = require('@nearform/flame') +const ClinicFlame = require('@clinic/flame') const flame = new ClinicFlame() flame.collect(['node', './path-to-script.js'], function (err, filepath) { @@ -35,7 +35,7 @@ flame.collect(['node', './path-to-script.js'], function (err, filepath) { ## Documentation ```js -const ClinicFlame = require('@nearform/flame') +const ClinicFlame = require('@clinic/flame') const flame = new ClinicFlame() ``` @@ -73,9 +73,9 @@ possible error. [stability-stable]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square [stability-docs]: https://nodejs.org/api/documentation.html#documentation_stability_index -[npm-version]: https://img.shields.io/npm/v/@nearform/flame.svg?style=flat-square -[npm-url]: https://www.npmjs.org/@nearform/flame -[npm-downloads]: http://img.shields.io/npm/dm/@nearform/flame.svg?style=flat-square +[npm-version]: https://img.shields.io/npm/v/@clinic/flame.svg?style=flat-square +[npm-url]: https://www.npmjs.org/@clinic/flame +[npm-downloads]: http://img.shields.io/npm/dm/@clinic/flame.svg?style=flat-square [lint-standard]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square [lint-standard-url]: https://github.com/feross/standard [clinic-url]: https://github.com/clinicjs/node-clinic diff --git a/collect/get-logging-paths.js b/collect/get-logging-paths.js index b39201f0..4596f327 100644 --- a/collect/get-logging-paths.js +++ b/collect/get-logging-paths.js @@ -1,5 +1,5 @@ 'use strict' -const common = require('@nearform/clinic-common') +const common = require('@clinic/clinic-common') module.exports = common.getLoggingPaths('flame', ['/samples', '/inlinedfunctions', '/0x-data/']) diff --git a/collect/system-info.js b/collect/system-info.js index 76997824..629bf544 100644 --- a/collect/system-info.js +++ b/collect/system-info.js @@ -9,7 +9,7 @@ function systemInfo (zeroXDataPath) { const metaJson = JSON.parse(fs.readFileSync(path.join(zeroXDataPath, 'meta.json'), 'utf8')) // This assumes that 0x's meta.json argv array first item is the path to the profiled package // There may be future exceptions to this, e.g. test cases wrapped in NYC - // See @nearform/bubbleprof's system-info.js for some examples + // See @clinic/bubbleprof's system-info.js for some examples const entryFile = path.resolve(metaJson.argv[0]) let mainDirectory diff --git a/debug/visualize-watch.js b/debug/visualize-watch.js index a9aed56d..90adb689 100644 --- a/debug/visualize-watch.js +++ b/debug/visualize-watch.js @@ -4,7 +4,7 @@ const chokidar = require('chokidar') const chalk = require('chalk') const v = require('./visualize-mod.js') -const buildImg = require('@nearform/clinic-common/scripts/build-images') +const buildImg = require('@clinic/clinic-common/scripts/build-images') // build images const path = require('path') const imgDestDir = path.join(__dirname, '../visualizer/assets/images') diff --git a/index.js b/index.js index ffaef19e..47f9bbe4 100644 --- a/index.js +++ b/index.js @@ -10,9 +10,9 @@ const systemInfo = require('./collect/system-info.js') const inlinedFunctions = require('./collect/inlined-functions.js') const analyse = require('./analysis/index.js') const pump = require('pump') -const buildJs = require('@nearform/clinic-common/scripts/build-js') -const buildCss = require('@nearform/clinic-common/scripts/build-css') -const mainTemplate = require('@nearform/clinic-common/templates/main') +const buildJs = require('@clinic/clinic-common/scripts/build-js') +const buildCss = require('@clinic/clinic-common/scripts/build-css') +const mainTemplate = require('@clinic/clinic-common/templates/main') class ClinicFlame extends events.EventEmitter { constructor (settings = {}) { diff --git a/package.json b/package.json index 97b31dd8..ed96ddf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@nearform/flame", - "version": "9.1.0", + "name": "@clinic/flame", + "version": "10.0.0", "engines": { "node": ">= 12.13.0" }, @@ -29,7 +29,7 @@ "author": "", "license": "MIT", "dependencies": { - "@nearform/clinic-common": "^6.0.0", + "@clinic/clinic-common": "^7.0.0", "0x": "^4.10.2", "copy-to-clipboard": "^3.0.8", "d3-array": "^2.0.2", diff --git a/visualizer/filters-bar.js b/visualizer/filters-bar.js index 7ad3c897..bfe654c7 100644 --- a/visualizer/filters-bar.js +++ b/visualizer/filters-bar.js @@ -1,10 +1,10 @@ 'use strict' const HtmlContent = require('./html-content.js') -const sidePanelExpand = require('@nearform/clinic-common/icons/sidepanel-expand') -const sidePanelCollapse = require('@nearform/clinic-common/icons/sidepanel-collapse') -const search = require('@nearform/clinic-common/icons/search') +const sidePanelExpand = require('@clinic/clinic-common/icons/sidepanel-expand') +const sidePanelCollapse = require('@clinic/clinic-common/icons/sidepanel-collapse') +const search = require('@clinic/clinic-common/icons/search') -const { button, checkbox, dropdown } = require('@nearform/clinic-common/base') +const { button, checkbox, dropdown } = require('@clinic/clinic-common/base') class FiltersContainer extends HtmlContent { constructor (parentContent, contentProperties = {}) { diff --git a/visualizer/filters-content.js b/visualizer/filters-content.js index b345d27f..51efae83 100644 --- a/visualizer/filters-content.js +++ b/visualizer/filters-content.js @@ -1,7 +1,7 @@ 'use strict' const HtmlContent = require('./html-content.js') -const { checkbox, accordion, helpers } = require('@nearform/clinic-common/base') +const { checkbox, accordion, helpers } = require('@clinic/clinic-common/base') class FiltersContent extends HtmlContent { constructor (parentContent, contentProperties = {}) { diff --git a/visualizer/flame-graph-tooltip-content.js b/visualizer/flame-graph-tooltip-content.js index 41dfc916..a0c9056f 100644 --- a/visualizer/flame-graph-tooltip-content.js +++ b/visualizer/flame-graph-tooltip-content.js @@ -2,10 +2,10 @@ const d3 = require('./d3.js') const Message = require('./message.js') const copy = require('copy-to-clipboard') -const zoomInIcon = require('@nearform/clinic-common/icons/zoom-in') -const zoomOutIcon = require('@nearform/clinic-common/icons/zoom-out') -const linkIcon = require('@nearform/clinic-common/icons/link') -const copyIcon = require('@nearform/clinic-common/icons/copy') +const zoomInIcon = require('@clinic/clinic-common/icons/zoom-in') +const zoomOutIcon = require('@clinic/clinic-common/icons/zoom-out') +const linkIcon = require('@clinic/clinic-common/icons/link') +const copyIcon = require('@clinic/clinic-common/icons/copy') class FgTooltipContent { constructor (ui) { diff --git a/visualizer/info-box.js b/visualizer/info-box.js index 575c7504..36f9331c 100644 --- a/visualizer/info-box.js +++ b/visualizer/info-box.js @@ -2,7 +2,7 @@ const d3 = require('./d3.js') const HtmlContent = require('./html-content.js') const getNoDataNode = require('./no-data-node.js') -const caretUpIcon = require('@nearform/clinic-common/icons/caret-up') +const caretUpIcon = require('@clinic/clinic-common/icons/caret-up') const stripTags = html => html.replace(/(<([^>]+)>)/ig, '') diff --git a/visualizer/main.js b/visualizer/main.js index 5194276d..5944e3e8 100644 --- a/visualizer/main.js +++ b/visualizer/main.js @@ -1,7 +1,7 @@ 'use strict' -require('@nearform/clinic-common/spinner') +require('@clinic/clinic-common/spinner') const Ui = require('./ui.js') -const loadFonts = require('@nearform/clinic-common/behaviours/font-loader') +const loadFonts = require('@clinic/clinic-common/behaviours/font-loader') // Create UI const ui = new Ui('main') diff --git a/visualizer/selection-controls.js b/visualizer/selection-controls.js index 177fa59b..c6f45378 100644 --- a/visualizer/selection-controls.js +++ b/visualizer/selection-controls.js @@ -1,12 +1,12 @@ 'use strict' const HtmlContent = require('./html-content.js') -const chevronLeftFirst = require('@nearform/clinic-common/icons/chevron-left-first') -const chevronLeft = require('@nearform/clinic-common/icons/chevron-left') -const chevronRight = require('@nearform/clinic-common/icons/chevron-right') -const chevronRightLast = require('@nearform/clinic-common/icons/chevron-right-last') +const chevronLeftFirst = require('@clinic/clinic-common/icons/chevron-left-first') +const chevronLeft = require('@clinic/clinic-common/icons/chevron-left') +const chevronRight = require('@clinic/clinic-common/icons/chevron-right') +const chevronRightLast = require('@clinic/clinic-common/icons/chevron-right-last') -const button = require('@nearform/clinic-common/base/button.js') +const button = require('@clinic/clinic-common/base/button.js') class SelectionControls extends HtmlContent { constructor (parentContent, contentProperties = {}) { diff --git a/visualizer/style.css b/visualizer/style.css index a70ec233..f5bd317a 100644 --- a/visualizer/style.css +++ b/visualizer/style.css @@ -1,5 +1,5 @@ -@import '@nearform/clinic-common/styles/styles.css'; -@import '@nearform/clinic-common/base/style.css'; +@import '@clinic/clinic-common/styles/styles.css'; +@import '@clinic/clinic-common/base/style.css'; @import "./walkthrough-steps.css"; @import "./toolbar.css"; @import "./stack-bar.css"; @@ -10,7 +10,7 @@ @import "./tooltip.css"; @import "./selection-controls.css"; @import "./info-box.css"; -@import "@nearform/clinic-common/spinner/style.css"; +@import "@clinic/clinic-common/spinner/style.css"; @import "./filters-bar.css"; @import "./filters-content.css"; @import "./side-bar.css"; diff --git a/visualizer/tooltip.js b/visualizer/tooltip.js index 81d445d5..88b4b571 100644 --- a/visualizer/tooltip.js +++ b/visualizer/tooltip.js @@ -1,7 +1,7 @@ 'use strict' const HtmlContent = require('./html-content.js') -const { toHtml } = require('@nearform/clinic-common/base/helpers.js') +const { toHtml } = require('@clinic/clinic-common/base/helpers.js') class Tooltip extends HtmlContent { constructor (parentContent, contentProperties = {}) { diff --git a/visualizer/ui.js b/visualizer/ui.js index 0c57bfa0..3a411d29 100644 --- a/visualizer/ui.js +++ b/visualizer/ui.js @@ -6,14 +6,14 @@ const htmlContentTypes = require('./html-content-types.js') const debounce = require('lodash.debounce') const DataTree = require('./data-tree.js') const History = require('./history.js') -const spinner = require('@nearform/clinic-common/spinner') +const spinner = require('@clinic/clinic-common/spinner') -const close = require('@nearform/clinic-common/icons/close') +const close = require('@clinic/clinic-common/icons/close') const TooltipHtmlContent = require('./flame-graph-tooltip-content') const getNoDataNode = require('./no-data-node.js') -const { button, walkthroughButton } = require('@nearform/clinic-common/base/index.js') +const { button, walkthroughButton } = require('@clinic/clinic-common/base/index.js') const wtSteps = require('./walkthrough-steps.js') class Ui extends events.EventEmitter { diff --git a/visualizer/walkthrough-steps.js b/visualizer/walkthrough-steps.js index 9a18f366..1d6e1d37 100644 --- a/visualizer/walkthrough-steps.js +++ b/visualizer/walkthrough-steps.js @@ -1,4 +1,4 @@ -const link = require('@nearform/clinic-common/base/link.js') +const link = require('@clinic/clinic-common/base/link.js') const docs = link({ label: 'Clinic Flame Documentation',