Skip to content

Commit

Permalink
fix: remove language (v0.1.6) (#157)
Browse files Browse the repository at this point in the history
fix: remove the language submodule
  • Loading branch information
rhamzeh authored Sep 21, 2023
1 parent 3ec2ed7 commit 6df1735
Show file tree
Hide file tree
Showing 8 changed files with 1,090 additions and 389 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: npm audit

- name: Check for circular dependencies
run: npx madge --circular . --extensions ts,js --exclude '(src|dist)/language/pkg/js/'
run: npx madge --circular . --extensions ts,js

# Run Prettier
- name: Run Prettier
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
tests/__snapshots__/*
src/parser/grammar.ts
*.ne
src/language/
*.ne
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.1.6
### [0.1.6](https://github.com/openfga/syntax-transformer/compare/v0.1.5...v0.1.6) (2023-09-21)

- fix: exporting language

## v0.1.5
### [0.1.5](https://github.com/openfga/syntax-transformer/compare/v0.1.4...v0.1.5) (2023-09-11)

Expand Down
1,458 changes: 1,082 additions & 376 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfga/syntax-transformer",
"version": "0.1.5",
"version": "0.1.6",
"description": "",
"license": "Apache-2.0",
"main": "./dist/index.js",
Expand Down Expand Up @@ -33,7 +33,6 @@
"author": "OpenFGA",
"dependencies": {
"@openfga/sdk": "^0.2.6",
"@openfga/language": "./src/language/pkg/js",
"assert-never": "^1.2.1",
"nearley": "^2.20.1",
"yargs": "^17.7.2"
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import * as syntaxHighlighters from "./syntax-highlighters";
import * as theming from "./theme";
import * as graphBuilder from "./utilities/graphs";
import sampleAuthorizationModels from "./samples";
// `language` imported like a module to avoid including antlr in the top level dependencies
// Local package path in package.json will be replaced with npm package version once published
import * as language from "./language/pkg/js";

const { Keyword, SchemaVersion } = enums;

Expand All @@ -26,7 +23,6 @@ export {
syntaxHighlighters,
theming,
graphBuilder,
language,

// for backward compatibility to prevent breaking changes, to be removed in next major release
Keyword,
Expand Down
1 change: 0 additions & 1 deletion src/language
Submodule language deleted from 7ab0bd

0 comments on commit 6df1735

Please sign in to comment.