From c8a1f4c8b11db31bda48964e24dbe5dc120c4fea Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Sat, 8 Jan 2022 11:34:48 +0100 Subject: [PATCH] fix: Remove JS private methods in classes for compatibility reasons --- CHANGELOG.md | 6 ++++++ Rails.novaextension/CHANGELOG.md | 6 ++++++ Rails.novaextension/extension.json | 2 +- package.json | 2 +- src/Scripts/commands/RailsImportmap.js | 6 +++--- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 909acaf..471ceb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 3.2 + +### FIX + +- Remove JS private methods in classes for compatibility reasons + ## Version 3.1 ### FIX diff --git a/Rails.novaextension/CHANGELOG.md b/Rails.novaextension/CHANGELOG.md index 909acaf..471ceb6 100644 --- a/Rails.novaextension/CHANGELOG.md +++ b/Rails.novaextension/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 3.2 + +### FIX + +- Remove JS private methods in classes for compatibility reasons + ## Version 3.1 ### FIX diff --git a/Rails.novaextension/extension.json b/Rails.novaextension/extension.json index 4738032..6574cb1 100644 --- a/Rails.novaextension/extension.json +++ b/Rails.novaextension/extension.json @@ -3,7 +3,7 @@ "name": "Ruby on Rails", "organization": "Tommaso Negri", "description": "Ruby on Rails and Ruby support for Nova editor.", - "version": "3.1", + "version": "3.2", "main": "main.dist.js", "license": "MIT", "keywords": [ diff --git a/package.json b/package.json index fdf6445..d17d6ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nova-rails", - "version": "0.3.1", + "version": "0.3.2", "description": "Ruby on Rails and Ruby support for Nova editor.", "main": "src/Scripts/main.js", "scripts": { diff --git a/src/Scripts/commands/RailsImportmap.js b/src/Scripts/commands/RailsImportmap.js index 89211ca..dced40b 100644 --- a/src/Scripts/commands/RailsImportmap.js +++ b/src/Scripts/commands/RailsImportmap.js @@ -10,7 +10,7 @@ export default class RailsImportmap { label: 'Packages', placeholder: 'lodash local-time react@17.0.1', prompt: 'Pin' - }, packages => this.#pin_or_unpin(packages, { + }, packages => this.pin_or_unpin(packages, { method: 'pin' })) } @@ -22,14 +22,14 @@ export default class RailsImportmap { label: 'Packages', placeholder: 'lodash local-time react@17.0.1', prompt: 'Unpin' - }, packages => this.#pin_or_unpin(packages, { + }, packages => this.pin_or_unpin(packages, { method: 'unpin' })) } // Private - #pin_or_unpin(packages, options) { + pin_or_unpin(packages, options) { const process = new Process('usr/bin/env', { cwd: nova.workspace.path, args: ['bin/importmap', options.method, ...packages.split(' ')],