PnP JSCore 1.0.6

The latest release, 1.0.6, of the Patterns and Practices JavaScript Core Library includes some new enhancements and fixes to issues reported since the last release. We’ve added improved support for reading and writing files, the ability to call the search suggest API, and various other improvements designed to help developers be more productive. Read below for…

0

JS Core now on CDNJS!

I’ve been working with the folks over at the cdnjs project to get the PnP JS Core listed and am happy to announce the library is now available! This should make it easier for folks to include the library in their projects, as well as reference it in SharePoint Framework projects as an external resource. cdnjs…

1

Using PnP JS Core and node-sp-auth

One of our goals is making it easy for folks to use the JS Core library – and we are always looking for opportunities to improve on that mission. Recently Sergei Sergeev submitted a PR to add support for his library node-sp-auth. Ultimately we decided not to merge this change. However, we recognize that such a change could provide developers greater flexibility…

2

PnP JSCore 1.0.5

The latest release, 1.0.5, of the Patterns and Practices JavaScript Core Library includes some new enhancements and fixes to issues reported since the last release. The largest change is the move to support TypeScript 2.0 and the new @types system for improved declaration support. This is a fairly large move, but comes with significant advantages as well…

0

Node “Console App” & Debugging TypeScript 2.0 in VS Code

This post is an update of my first post outlining how to get started debugging TypeScript 2.0. The core ideas remain the same but there are a few updates in the steps as well as file contents. This example has also been expanded to support Webpack for serving and bundling your solutions. Setup the Project…

2

PnP JSCore 1.0.4

The latest release, 1.0.4, of the Patterns and Practices JavaScript Core Library includes some new enhancements and fixes to issues reported since the last release. Batch.Execute Returns a Promise When we introduced batching it was written such that all of your promises would resolve as expected once you called the execute method on the batch. There…

0

Node “Console App” & Debugging TypeScript in VS Code

There is an updated post discussing TypeScript 2.0 which also includes Webpack bundling. One of the most common utility cases when working with SharePoint is to create a new console app, import the PnP CSOM components, and then perform the actions required. This is a way to test code, make quick one-off updates, or process…

2

Generating API Documentation for PnP JS Core

One of our more requested features as we have developed the library was comprehensive API documentation. And rightly so. We quickly discovered that as the library grew and evolved it would be a Sisyphean task trying to keep docs up to date manually. We did a lot of research and trial and error, but have the beginnings…

0

How we do testing in PnP JS Core

Recently we added support for testing the library directly against SharePoint. While the effort is ongoing to get complete test coverage I wanted to share how we set things up and perhaps this will also help with testing your applications. Mocha and Chai The foundation of our testing begins with Mocha and Chai. These two open…

0

PnP JSCore 1.0.3

The latest release, 1.0.3, of the Patterns and Practices JavaScript Core Library includes some new enhancements and fixes to issues reported since the last release. Support for Node The largest enhancement included in this release is the addition of the NodeFetchClient which uses SharePoint OAuth add-in only authentication to allow the library to work directly from node….

0