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 #19

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

Deprecated Atom APIs will be removed June 1st #19

benogle opened this issue May 27, 2015 · 4 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 (1.1.4) of this package:

  1. Store package style sheets in the styles/ directory instead of stylesheets/ in the <pack-name> package
  2. Use activationCommands instead of activationEvents 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"] }
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. TextEditor::on is deprecated. Use documented event subscription methods instead.
  8. Use TextEditorElement::pixelPositionForBufferPosition instead. You can get the editor via editorView.getModel()
  9. Use Workspace::onDidAddTextEditor instead

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!

@ymatuhin
Copy link

+1

@LandonSchropp
Copy link

👍 It's a shame to see this disappear from the atom packages list.

@joshmedeski
Copy link

👍

@leny
Copy link

leny commented Jan 1, 2016

Hi, since the author of the package doesn't seems to have time to maintain it, I've rewrite it to fit the new Atom's API : https://github.com/leny/atom-easy-motion-redux

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

5 participants