Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated Atom APIs will be removed June 1st #33

Open
benogle opened this issue May 27, 2015 · 2 comments
Open

Deprecated Atom APIs will be removed June 1st #33

benogle opened this issue May 27, 2015 · 2 comments

Comments

@benogle
Copy link

benogle commented May 27, 2015

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.6.2) of this package:

  1. Requiring $ from atom is no longer supported. If you are using space-pen, please require $ from atom-space-pen-views. Otherwise require jquery 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.
  2. Requiring SelectListView from atom is no longer supported. Please require SelectListView from atom-space-pen-view instead: {SelectListView} = require 'atom-space-pen-views' Note that the API has changed slightly! Please read the docs at https://github.com/atom/atom-space-pen-views Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  3. Requiring EditorView from atom is no longer supported. Please require TextEditorView from atom-space-pen-view instead: {TextEditorView} = require 'atom-space-pen-views' Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  4. Requiring View from atom is no longer supported. Please require atom-space-pen-views instead: {View} = require 'atom-space-pen-views' Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  5. 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.
  6. Use ::addLeftTile({item, priority}) instead.
  7. The atom.workspaceView.statusBar global is deprecated. The global was previously being assigned by the status-bar package, but Atom packages should never assign globals. In the future, this problem will be solved by an inter-package communication API available on atom.services. For now, you can get a reference to the status-bar element via document.querySelector('status-bar').
  8. Use Workspace::observeTextEditors instead
  9. Use Workspace::getTextEditors instead
  10. Use Workspace::onDidAddTextEditor or Workspace::observeTextEditors instead.
  11. Use TextEditor::onDidChangeGrammar instead
  12. Use PackageManager::onDidActivateInitialPackages instead
  13. Call ::getActiveTextEditor instead
  14. Use TextBuffer::onDidChange instead
  15. Use TextEditor::scrollToCursorPosition instead. You can get the editor via editorView.getModel()

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!

@brunsgaard
Copy link

@jhutchins, Hay jeff, is this project dead?

@jhutchins
Copy link
Owner

Pretty much. I just haven't had the time to deal with it recently. I would
be more than willing to turn the project over to a willing participant if
there was someone that wanted to take it over.

On Tue, Aug 4, 2015 at 2:41 PM Jonas Brunsgaard notifications@github.com
wrote:

@jhutchins https://github.com/jhutchins, Hay jeff, is this project dead?


Reply to this email directly or view it on GitHub
#33 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants