Socket
Socket
Sign inDemoInstall

wpapi

Package Overview
Dependencies
45
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-rc.1 to 1.0.0

documentation/01-installation.md

4

CHANGELOG.md

@@ -103,7 +103,5 @@ # v1.0.0 _Emotional Technology_

**Props**
Props @edygar
@edygar
## v0.9.1 _Since I Left You_

@@ -110,0 +108,0 @@

@@ -5,3 +5,2 @@ 'use strict';

* @submodule WPRequest
* @beta
*/

@@ -8,0 +7,0 @@

@@ -7,4 +7,4 @@ {

"name": "wpapi",
"version": "1.0.0-rc.1",
"description": "A client for interacting with the WordPress REST API",
"version": "1.0.0",
"description": "An isomorphic JavaScript client for interacting with the WordPress REST API",
"main": "wpapi.js",

@@ -46,5 +46,2 @@ "repository": {

},
"engines": {
"node": ">= 0.10.0"
},
"dependencies": {

@@ -51,0 +48,0 @@ "es6-promise": "^3.2.1",

A WordPress REST API client for JavaScript
==========================================
This is a client for the [WordPress REST API](http://v2.wp-api.org/). It is **under active development**, and should be considered beta software. More features are in progress, and **[issues](https://github.com/wp-api/node-wpapi/issues)** are welcome if you find something that doesn't work!
This library is an isomorphic client for the [WordPress REST API](http://developer.wordpress.org/rest-api), designed to work with WordPress 4.7 or later. If you are using the older [WP REST API plugin](https://github.com/WP-API/WP-API), some commands will not work.
**`wpapi` is designed to work with [WP-API](https://github.com/WP-API/WP-API) v2 beta 1 or higher.** If you use a prior version of the beta, some commands will not work. The latest beta is always recommended!
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/wp-api/node-wpapi?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@@ -37,3 +35,3 @@

`node-wpapi` makes it easy for your JavaScript application to request specific resources from a [WordPress](https://wordpress.org) website. It uses a query builder-style syntax to let you craft the request being made to [WordPress REST API](http://v2.wp-api.org) endpoints, then returns the API's response to your application as a JavaScript object. And don't let the name fool you: `node-wpapi` works just as well in the browser as it does on the server!
`node-wpapi` is an isomorphic JavaScript client for the [WordPress REST API](https://developer.wordpress.org/rest-api) that makes it easy for your JavaScript application to request specific resources from a [WordPress](https://wordpress.org) website. It uses a query builder-style syntax to let you craft the request being made to REST API endpoints, then returns the API's response to your application as a JSON object. And don't let the name fool you: with [Webpack](https://webpack.github.io/) or [Browserify](http://browserify.org/), `node-wpapi` works just as well in the browser as it does on the server!

@@ -657,4 +655,2 @@ This library is maintained by K. Adam White at [Bocoup](https://bocoup.com), with contributions from a [great community](https://github.com/WP-API/node-wpapi/graphs/contributors) of WordPress and JavaScript developers.

_**Note:** This section applies only to the WP-API v2 betas and above; the initial 1.0 release of the API embedded data by default._
Data types in WordPress are interrelated: A post has an author, some number of tags, some number of categories, *etc*. By default, the API responses will provide pointers to these related objects, but will not embed the full resources: so, for example, the `"author"` property would come back as just the author's ID, *e.g.* `"author": 4`.

@@ -661,0 +657,0 @@

@@ -14,3 +14,2 @@ /**

* @main WPAPI
* @beta
})

@@ -23,3 +22,4 @@ */

// All valid routes in API v2 beta 11
// This JSON file provides enough data to create handler methods for all valid
// API routes in WordPress 4.7
var defaultRoutes = require( './lib/data/default-routes.json' );

@@ -26,0 +26,0 @@ var buildRouteTree = require( './lib/route-tree' ).build;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc