Skip to content

Commit

Permalink
Rename package.
Browse files Browse the repository at this point in the history
- Changed package name from `ocapld` to `@digitalbazaar/zcapld`.
  • Loading branch information
davidlehn committed Mar 17, 2021
1 parent 09e2b4a commit a3ae7af
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 144 deletions.
125 changes: 125 additions & 0 deletions CHANGELOG-ocapld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# ocapld ChangeLog

### Note
- **BREAKING**: Changed package name from `ocapld` to `@digitalbazaar/zcapld`.
- See the [`zcapld` changelog](./CHANGELOG.md) for newer changes.

## 2.0.0 - 2020-04-02

### Changed
- **BREAKING**: An `invocationTarget` must be specified in all delegations.
- Improve test coverage.

### Fixed
- Properly validate `allowedAction` in capabilities.

### Added
- Add verification of `expires` as a core feature.
- Add the ability to specificy a `maxChainLength` when verifying capability
delegations.
- Add an optional `allowTargetAttenuation` flag which allows the
`invocationTarget` of a delegation chain to be increasingly restrictive
based on a hierarchical RESTful URL structure.

## 1.8.0 - 2020-02-14

### Changed

- Use jsonld-signatures@5.

## 1.7.0 - 2020-02-07

### Added
- Implement validation for embedded capabilities in `capabilityChain`.

## 1.6.1 - 2020-01-30

### Fixed
- Adjust the parameters to `inspectCapabilityChain` to support more general
use cases. See in-line documentation for parameter details.

## 1.6.0 - 2020-01-29

### Added
- Add an optional `inspectCapabilityChain` parameter to `CapabilityDelegation`
and `CapabilityInvocation`. `inspectCapabilityChain` must be an async
function used to check the capability chain. It can, for instance, be used
to find revocations related to any of the capabilities in the chain.

## 1.5.1 - 2020-01-29

### Fixed
- Address issues in `verifyCapabilityChain` helper that resulted in some
proofs not being properly verified.

## 1.5.0 - 2020-01-09

### Added
- Support multiple values for `expectedTarget` and `expectedRootCapability`
for use cases such as where capabilities are given for reading/writing
any item in a collection instead of only individual items.

## 1.4.0 - 2019-10-08

### Changed
- Use [email protected] Use with support for Node 12 native Ed25519
crypto.

## 1.3.1 - 2019-08-11

### Fixed
- Handle case where a capability lists list multiple
controllers/invokers/delegators.

## 1.3.0 - 2019-07-17

### Added
- Add `expectedRootCapability` to allow a root capability to
specify an `invocationTarget` different from its `id`. This
allows zcaps to be used to manage authority for resources
that cannot express their own zcap authority information
such as binary files or resources that use JSON or JSON-LD
but, for whatever reason, cannot express `controller`,
`invoker`, `delegator`, or key information.

## 1.2.1 - 2019-06-29

### Fixed
- Check `allowedAction` against expected `capabilityAction`.
- Fix expected action check.
- Fix capability chain check.
- Ensure root caps are dereferenced and have a valid target.
- Handle case where `invocationTarget` is an object.

## 1.2.0 - 2019-05-17

### Added
- Support `controller` on capabilities as `delegator` and `invoker`.

### Changed
- Update webpack and babel.
- Switch to eslint.

## 1.1.0 - 2019-03-27

### Changed
- Upgrade jsonld-signatures to version 4.

## 1.0.2 - 2019-01-03

### Fixed
- Change jsonld-signatures to a regular dependency.

## 1.0.1 - 2019-01-03

### Fixed
- Distribute webpack built dist files.

## 1.0.0 - 2019-01-03

### Changed
- Use webpack 'externals' for jsonld and jsonld-signatures.

## 0.1.0 - 2019-01-02
- Initial release.
- See git history for changes.
126 changes: 6 additions & 120 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ocapld ChangeLog
# @digitalbazaar/zcapld ChangeLog

### Changed
- **BREAKING**: Changed package name from `ocapld` to `@digitalbazaar/zcapld`.
- Resetting version to `1.0.0`.
- **BREAKING**: Only support Node.js >=12.
- Update dependencies.
- Use new `@digitalbazaar/ed25519-signature-2018` and
Expand All @@ -14,122 +16,6 @@
- **BREAKING**: Remove `bitcore-message` dependency. It's for a specialized use
case.

## 2.0.0 - 2020-04-02

### Changed
- **BREAKING**: An `invocationTarget` must be specified in all delegations.
- Improve test coverage.

### Fixed
- Properly validate `allowedAction` in capabilities.

### Added
- Add verification of `expires` as a core feature.
- Add the ability to specificy a `maxChainLength` when verifying capability
delegations.
- Add an optional `allowTargetAttenuation` flag which allows the
`invocationTarget` of a delegation chain to be increasingly restrictive
based on a hierarchical RESTful URL structure.

## 1.8.0 - 2020-02-14

### Changed

- Use jsonld-signatures@5.

## 1.7.0 - 2020-02-07

### Added
- Implement validation for embedded capabilities in `capabilityChain`.

## 1.6.1 - 2020-01-30

### Fixed
- Adjust the parameters to `inspectCapabilityChain` to support more general
use cases. See in-line documentation for parameter details.

## 1.6.0 - 2020-01-29

### Added
- Add an optional `inspectCapabilityChain` parameter to `CapabilityDelegation`
and `CapabilityInvocation`. `inspectCapabilityChain` must be an async
function used to check the capability chain. It can, for instance, be used
to find revocations related to any of the capabilities in the chain.

## 1.5.1 - 2020-01-29

### Fixed
- Address issues in `verifyCapabilityChain` helper that resulted in some
proofs not being properly verified.

## 1.5.0 - 2020-01-09

### Added
- Support multiple values for `expectedTarget` and `expectedRootCapability`
for use cases such as where capabilities are given for reading/writing
any item in a collection instead of only individual items.

## 1.4.0 - 2019-10-08

### Changed
- Use [email protected] Use with support for Node 12 native Ed25519
crypto.

## 1.3.1 - 2019-08-11

### Fixed
- Handle case where a capability lists list multiple
controllers/invokers/delegators.

## 1.3.0 - 2019-07-17

### Added
- Add `expectedRootCapability` to allow a root capability to
specify an `invocationTarget` different from its `id`. This
allows zcaps to be used to manage authority for resources
that cannot express their own zcap authority information
such as binary files or resources that use JSON or JSON-LD
but, for whatever reason, cannot express `controller`,
`invoker`, `delegator`, or key information.

## 1.2.1 - 2019-06-29

### Fixed
- Check `allowedAction` against expected `capabilityAction`.
- Fix expected action check.
- Fix capability chain check.
- Ensure root caps are dereferenced and have a valid target.
- Handle case where `invocationTarget` is an object.

## 1.2.0 - 2019-05-17

### Added
- Support `controller` on capabilities as `delegator` and `invoker`.

### Changed
- Update webpack and babel.
- Switch to eslint.

## 1.1.0 - 2019-03-27

### Changed
- Upgrade jsonld-signatures to version 4.

## 1.0.2 - 2019-01-03

### Fixed
- Change jsonld-signatures to a regular dependency.

## 1.0.1 - 2019-01-03

### Fixed
- Distribute webpack built dist files.

## 1.0.0 - 2019-01-03

### Changed
- Use webpack 'externals' for jsonld and jsonld-signatures.

## 0.1.0 - 2019-01-02
- Initial release.
- See git history for changes.
### Previous ocapld ChangeLog
- This package was renamed from `ocapld`.
See the [`ocapld` changelog](./CHANGELOG-ocapld.md) for earlier changes.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
ocapld.js
=========
zcapld
======

[![Build Status](https://travis-ci.org/digitalbazaar/ocapld.js.png?branch=master)](https://travis-ci.org/digitalbazaar/ocapld.js)
[![Build status](https://img.shields.io/github/workflow/status/digitalbazaar/zcapld/Node.js%20CI)](https://github.com/digitalbazaar/zcapld/actions?query=workflow%3A%22Node.js+CI%22)
[![Coverage status](https://img.shields.io/codecov/c/github/digitalbazaar/zcapld)](https://codecov.io/gh/digitalbazaar/zcapld)
[![Dependency Status](https://img.shields.io/david/digitalbazaar/zcapld.svg)](https://david-dm.org/digitalbazaar/zcapld)

Javascript reference implementation for
[Authorization Capabilities for Linked Data](https://w3c-ccg.github.io/zcap-ld/).
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Karam configuration for ocapld.
* Karma configuration for zcapld.
*
* Copyright (c) 2011-2019 Digital Bazaar, Inc. All rights reserved.
*/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "ocapld",
"name": "@digitalbazaar/zcapld",
"version": "2.0.1-0",
"description": "Linked Data Capabilities reference implementation.",
"homepage": "https://github.com/digitalbazaar/ocapld.js/",
"homepage": "https://github.com/digitalbazaar/zcapld",
"author": {
"name": "Digital Bazaar, Inc.",
"email": "[email protected]",
"url": "https://digitalbazaar.com/"
},
"repository": {
"type": "git",
"url": "https://github.com/digitalbazaar/ocapld.js"
"url": "https://github.com/digitalbazaar/zcapld"
},
"bugs": {
"url": "https://github.com/digitalbazaar/ocapld.js/issues/"
"url": "https://github.com/digitalbazaar/zcapld/issues/"
},
"license": "BSD-3-Clause",
"main": "lib/index.js",
Expand Down
6 changes: 3 additions & 3 deletions tests/test-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ module.exports = async function(options) {
'use strict';

const should = require('chai').should();
const {expect, helpers, jsigs, mock, ocapld} = options;
const {expect, helpers, jsigs, mock, zcapld} = options;

const {
CapabilityInvocation,
CapabilityDelegation,
ExpirationCaveat
} = ocapld;
} = zcapld;

const {
SECURITY_CONTEXT_URL
Expand Down Expand Up @@ -52,7 +52,7 @@ const alpha = new Controller(privateDidDocs.alpha);
const CONSTANT_DATE = '2018-02-13T21:26:08Z';

// run tests
describe('ocapld.js', () => {
describe('zcapld', () => {
context('Common', () => {
describe('sign with capabilityInvocation proof purpose', () => {
it('should succeed w/key invoker', async () => {
Expand Down
6 changes: 3 additions & 3 deletions tests/test-karma.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Karma test runner for ocapld.js.
* Karma test runner for zcapld.
*
* Use environment vars to control, set via karma.conf.js/webpack:
*
Expand All @@ -18,7 +18,7 @@
const common = require('./test-common');
const expect = require('chai').expect;
const jsigs = require('jsonld-signatures');
const ocapld = require('../lib');
const zcapld = require('../lib');

const mock = require('./mock-data');
const helpers = require('./helpers');
Expand All @@ -28,7 +28,7 @@ const options = {
helpers,
jsigs,
mock,
ocapld,
zcapld,
nodejs: false
};

Expand Down
6 changes: 3 additions & 3 deletions tests/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Node.js test runner for ocapld.js.
* Node.js test runner for zcapld.
*
* Copyright (c) 2011-2018 Digital Bazaar, Inc. All rights reserved.
*/
Expand All @@ -8,7 +8,7 @@
const common = require('./test-common');
const expect = require('chai').expect;
const jsigs = require('../node_modules/jsonld-signatures');
const ocapld = require('../lib');
const zcapld = require('../lib');

const mock = require('./mock-data');
const helpers = require('./helpers');
Expand All @@ -18,7 +18,7 @@ const options = {
helpers,
jsigs,
mock,
ocapld,
zcapld,
nodejs: true
};

Expand Down
Loading

0 comments on commit a3ae7af

Please sign in to comment.