Deprecated Atom APIs will be removed June 1st
Closed this issue · 0 comments
benogle commented
Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.6.0
) of this package:
- Use
activationCommands
instead ofactivationEvents
in your package.json Commands should be grouped by selector as follows:json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
- Store package style sheets in the
styles/
directory instead ofstylesheets/
in the<pack-name>
package - atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use
atom.views.getView(atom.workspace)
, which returns an HTMLElement. - Call Workspace::addOpener instead
- Requiring
$
fromatom
is no longer supported. If you are usingspace-pen
, please require$
fromatom-space-pen-views
. Otherwise requirejquery
instead:{$} = require 'atom-space-pen-views'
or$ = require 'jquery'
Add"atom-space-pen-views": "^2.0.3"
to your package dependencies. Or add"jquery": "^2"
to your package dependencies. - Requiring
View
fromatom
is no longer supported. Please requireatom-space-pen-views
instead:{View} = require 'atom-space-pen-views'
Add"atom-space-pen-views": "^2.0.3"
to your package dependencies. - Call .dispose() on the Disposable returned from ::addOpener instead
- Please use Workspace::addTopPanel() instead
- Use ::getActivePane() instead of the ::activePane property
- If you would like your pane item with class
<ClassName>
to support modified behavior, please implement a::onDidChangeModified()
method. If not, ignore this message.::on
methods for items are no longer supported. - If you would like your pane item with class
<ClassName>
to support title change behavior, please implement a::onDidChangeTitle()
method.::on
methods for items are no longer supported. If not, ignore this message.
Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See atom/atom#6867 for more info. Thanks!