Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: netlify/angular-runtime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: netlify/angular-runtime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.1
Choose a head ref
  • 3 commits
  • 6 files changed
  • 3 contributors

Commits on May 23, 2024

  1. docs(readme): fix refs to old package name (#112)

    This package was renamed 9 months ago.
    serhalp authored May 23, 2024
    Copy the full SHA
    55f42b6 View commit details

Commits on May 27, 2024

  1. fix: don't shadow netlify functions (#115)

    Skn0tt authored May 27, 2024
    Copy the full SHA
    9fb04f9 View commit details
  2. chore(main): release 2.1.1 (#117)

    Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
    token-generator-app[bot] authored May 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f66655e View commit details
Showing with 16 additions and 8 deletions.
  1. +7 −0 CHANGELOG.md
  2. +4 −4 README.md
  3. +1 −0 demo.test.mjs
  4. +2 −2 package-lock.json
  5. +1 −1 package.json
  6. +1 −1 src/helpers/setUpEdgeFunction.js
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [2.1.1](https://github.com/netlify/angular-runtime/compare/v2.1.0...v2.1.1) (2024-05-27)


### Bug Fixes

* don't shadow netlify functions ([#115](https://github.com/netlify/angular-runtime/issues/115)) ([9fb04f9](https://github.com/netlify/angular-runtime/commit/9fb04f95dae41e4ea8ca264f4a53334128758626))

## [2.1.0](https://github.com/netlify/angular-runtime/compare/v2.0.7...v2.1.0) (2024-05-22)


8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -34,15 +34,15 @@ Create a `netlify.toml` in the root of your project. Your file should include th

```toml
[[plugins]]
package = "@netlify/plugin-angular-universal"
package = "@netlify/angular-runtime"
```

Install it via your package manager:

```bash
npm install -D @netlify/plugin-angular-universal
npm install -D @netlify/angular-runtime
# or
yarn add -D @netlify/plugin-angular-universal
yarn add -D @netlify/angular-runtime
```

Read more about [file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation)
@@ -81,7 +81,7 @@ netlify serve

### Requirements

To use the Angular Universal plugin while building and deploying with the CLI, you need to have `netlify-cli v17.0.0` installed (or a later version).
To use the Angular Runtime while building and deploying with the CLI, you need to have `netlify-cli v17.0.0` installed (or a later version).

Please also make sure to use `ntl deploy --build` (rather than `ntl build && ntl deploy`).

1 change: 1 addition & 0 deletions demo.test.mjs
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ test('edge function config', async () => {
const { config } = await import('./demo/.netlify/edge-functions/angular-ssr/angular-ssr.mjs')

assert.deepEqual(config.excludedPath, [
'/.netlify/*',
'/dashboard/index.html',
'/favicon.ico',
'/heroes/index.html',
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netlify/angular-runtime",
"version": "2.1.0",
"version": "2.1.1",
"description": "Netlify Angular Runtime - Run Angular seamlessly on Netlify.",
"main": "src/index.js",
"files": [
2 changes: 1 addition & 1 deletion src/helpers/setUpEdgeFunction.js
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => {
(path) => `/${relative(join(outputDir, 'browser'), path)}`,
)

const excludedPaths = [...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix)
const excludedPaths = ['/.netlify/*', ...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix)

// buy putting this into a separate module that's imported first,
// we ensure this is initialised before any other module